javascript - Bootbox Element Selection -



javascript - Bootbox Element Selection -

i using function on index file opening bootbox modal. thought place litte contact form within modal window. function working correctly , bootbox modal opening, below code:

jquery

$('#form').click(function(){ $.get("modal.php", function(data,status){ bootbox.dialog({ message: data, title: "contact us", }); });

});

problem cannot select element within modal window, illustration have button within modal.php file

html

<button id="cancelbutton" type="button" class="btn btn-danger">cancelar</button>

if seek attach event button nil happens. doing wrong here?

this code button event

$('#cancelbutton').on('click',function () { alert('testing'); console.log('testing'); });

i can target element via css though:

#cancelbutton{background:#000;}

problem solved. future reference jquery version issue. changing version 1.11.1 solved problem.

thanks

javascript jquery twitter-bootstrap

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -