Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (($("element").data('bs.modal') || {}).isShown) {
- $('#action-description').val('Update');
- } else {
- $('#action-description').val('Create');
- }
- <input type="text" id="action-description" name="action-description" value="">
- $('#modalElement').on('hidden', function(){
- $('#action-description').val('Create');
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement