Are you first timer at lazacode.org? Why not join us and start exchange your programming knowledge with everyone. Register today!

jQuery to look for modal parameter

0 votes
16 views
added Dec 15, 2017 in jQuery by LC Marshal Lieutenant (12,590 points)
edited Jul 5 by LC Marshal
//parameter link
the link : https://www.mysite.com?showlogin=true
 
//the script
if(window.location.search.indexOf("showlogin") > -1){
  jQuery("#modal_trigger").trigger("click");
}

Please log in or register to response this reference.

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...