Friday, 15 June 2012

events - JQuery Click inside other click -



events - JQuery Click inside other click -

all need click event start simple modal , click button in modal, sec click (triggered first click) not working. :(

jquery(function ($) { // load dialog on click $('#basic-modal .basic').click(function (e) { $('#basic-modal-content').modal(); $("#botaoteste").click(); homecoming false; }); });

you separete on function , phone call need, sample:

jquery(function ($) { // create function function clickeventtest(e) { // code } // set function on click of 'botaoteste' element $("#botaoteste").click(clickeventtest); // load dialog on click $('#basic-modal .basic').click(function (e) { $('#basic-modal-content').modal(); // phone call function clickeventtest(e); homecoming false; }); });

jquery events click

No comments:

Post a Comment