javascript - Element value set by modal button action is not working in jquery? -


my code jquery is: (this trigger on modal button click)

$(document).on('click', '.js-modal-remove-button', function () {     $('#code-output').attr('da-url',"1111"); }); 

my code html is:

<input type="hidden" name="problemcode" id="code-output" da-url=2/> 

problem there button in page, on button click modal opens , in modal there button contains class js-modal-remove-button on action of need set main page(on modal opening button present) da-url value

just , class button , use jquery
html

<button class="js-modal-remove-button model_button_class"></button> 

jquery

$(document).on('click', '.js-modal-remove-button .model_button_class', function () {     $('#code-output').attr('da-url',"1111"); }); 

here .model_button_class class .
thing you.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -