¡@

Home 

2014/10/16 ¤W¤È 12:09:28

jquery Programming Glossary: thisopts

Getting initial selector inside jquery plugin

http://stackoverflow.com/questions/5477394/getting-initial-selector-inside-jquery-plugin

options this.each function Var var this this var thisOpts 'option' this var thisSelected this 0 .selectedIndex var options_clone.. options_clone '' this.hide options_clone ' li rel span ' thisOpts thisSelected .text ' span ul ' for var index in thisOpts Check.. ' thisOpts thisSelected .text ' span ul ' for var index in thisOpts Check to see if option has any text and that the value is not..

Getting initial selector inside jquery plugin

http://stackoverflow.com/questions/5477394/getting-initial-selector-inside-jquery-plugin

var defaults myClass 'mySelect' var settings .extend defaults options this.each function Var var this this var thisOpts 'option' this var thisSelected this 0 .selectedIndex var options_clone '' this.hide options_clone ' li rel span ' thisOpts.. 'option' this var thisSelected this 0 .selectedIndex var options_clone '' this.hide options_clone ' li rel span ' thisOpts thisSelected .text ' span ul ' for var index in thisOpts Check to see if option has any text and that the value is not.. var options_clone '' this.hide options_clone ' li rel span ' thisOpts thisSelected .text ' span ul ' for var index in thisOpts Check to see if option has any text and that the value is not undefined if thisOpts index .text thisOpts index .value undefined..