jquery Programming Glossary: whereto
Link to an anchor within JQuery tabbed content http://stackoverflow.com/questions/10595351/link-to-an-anchor-within-jquery-tabbed-content value of the attribute 'goto' puts the value into the var whereTo and executes a click on the selector matching 'a href #' whereTo.. and executes a click on the selector matching 'a href #' whereTo ' ' 'a' .not '.tabs li a' .on 'click' function evt evt.preventDefault.. li a' .on 'click' function evt evt.preventDefault var whereTo this .attr 'goto' tabs ul.tabs li tabs.find 'a href #' whereTo..
Trying so hard to Link to tabbed content from an external link [closed] http://stackoverflow.com/questions/12964070/trying-so-hard-to-link-to-tabbed-content-from-an-external-link li a' .on 'click' function evt evt.preventDefault var whereTo this .attr 'goto' tabs ul.tabs li tabs.find 'a href #' whereTo.. this .attr 'goto' tabs ul.tabs li tabs.find 'a href #' whereTo ' ' .trigger 'click' alert attr 'name' alert '#' whereTo ' a'.. whereTo ' ' .trigger 'click' alert attr 'name' alert '#' whereTo ' a' .offset .top 'html body' .animate scrollTop '#' whereTo..
Link to an anchor within JQuery tabbed content http://stackoverflow.com/questions/10595351/link-to-an-anchor-within-jquery-tabbed-content li a href #stuff Stuff a li . The function below gets the value of the attribute 'goto' puts the value into the var whereTo and executes a click on the selector matching 'a href #' whereTo ' ' 'a' .not '.tabs li a' .on 'click' function evt evt.preventDefault.. of the attribute 'goto' puts the value into the var whereTo and executes a click on the selector matching 'a href #' whereTo ' ' 'a' .not '.tabs li a' .on 'click' function evt evt.preventDefault var whereTo this .attr 'goto' tabs ul.tabs li tabs.find.. on the selector matching 'a href #' whereTo ' ' 'a' .not '.tabs li a' .on 'click' function evt evt.preventDefault var whereTo this .attr 'goto' tabs ul.tabs li tabs.find 'a href #' whereTo ' ' .trigger 'click' code shortened to keep explanation simple..
Trying so hard to Link to tabbed content from an external link [closed] http://stackoverflow.com/questions/12964070/trying-so-hard-to-link-to-tabbed-content-from-an-external-link .animate scrollTop targetAnchor.offset .top 'a' .not '.tabs li a' .on 'click' function evt evt.preventDefault var whereTo this .attr 'goto' tabs ul.tabs li tabs.find 'a href #' whereTo ' ' .trigger 'click' alert attr 'name' alert '#' whereTo.. li a' .on 'click' function evt evt.preventDefault var whereTo this .attr 'goto' tabs ul.tabs li tabs.find 'a href #' whereTo ' ' .trigger 'click' alert attr 'name' alert '#' whereTo ' a' .offset .top 'html body' .animate scrollTop '#' whereTo '.. this .attr 'goto' tabs ul.tabs li tabs.find 'a href #' whereTo ' ' .trigger 'click' alert attr 'name' alert '#' whereTo ' a' .offset .top 'html body' .animate scrollTop '#' whereTo ' a' .offset .top function 'a.refresh' .live click function..
|