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

jQuery to look for modal parameter

0 votes
11 views
added Dec 15, 2017 in jQuery by LC Marshal First Warrant Officer (8,170 points)

//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 example this solution.

lazacode.org - Malaysia based Knowledge Exchange Platform, where you can share your finding or solution with other members of community.
...