javascript - Launch a Modal window from within another modal -


i using jquery modal: rsmodal

i can launch modal button fine, able click button within first modal open modal closing first.

i copied same button launches first modal modal content , changed modal button launched, clicking nothing. button doesn't respond while in thyme modal.

button launch first modal:

<div class="cust-btn"><li><a href="#" class="mymodal_advanced_options">advanced options</a></li></div> 

that button launches modal:

<!-- advanced options modal --> <div id="modalcontent" class="modal modal_advanced_options">     <div class="cust-btn"><li><a href="#" class="mymodal_new_cust">new card</a></li></div> </div> 

clicking button inside modal close first , open second. here script calls modal content:

/* advanced options modal */     $(function(){         $('.mymodal_advanced_options').click(function(){             $('.modal_advanced_options').rsmodal();         });     }); 

the button inside modal should call function launch next modal:

/* new customer modal */     $(function(){         $('.mymodal_new_cust').click(function(){             $('.modal_card').rsmodal();         });     }); 

anyone have ideas? possible.

/* new customer modal */     $(function(){         $('.mymodal_new_cust').click(function(){             $('#modalcontent').hide();             $('.modal_card').rsmodal();                         });     }); 

try if can solve problem ....


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -