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
9 views
added Dec 15, 2017 in jQuery by LC Marshal Second Warrant Officer (3,400 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 response this solution.

...