Skip to content

Instantly share code, notes, and snippets.

@RyanB1303
Created April 16, 2022 08:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RyanB1303/ee8755c6d0a61615cdfe1164005d395a to your computer and use it in GitHub Desktop.
Save RyanB1303/ee8755c6d0a61615cdfe1164005d395a to your computer and use it in GitHub Desktop.
rails javascript
$('#notice').html("<%= j render 'shared/flash', flash: flash %>");
var tombol_pengganti = `<button class= 'btn btn-primary d-inline-flex align-items-center toggle-active' disabled>
Usulan Diajukan
<i class='fas fa-check-circle text-success icon icon-xs ms-2'></i>
</button>`;
$(".action-<%= dom_id(@musrenbang) %>").html(tombol_pengganti);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment