¡@

Home 

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

jquery Programming Glossary: stepnum

Rework jQuery Scripts to Utilize Wildcard Targeting of Classes/Ids

http://stackoverflow.com/questions/20292203/rework-jquery-scripts-to-utilize-wildcard-targeting-of-classes-ids

elements a class for example tutorial toc step c as well as save the number in additional field for example data stepnum '01' . Then the beginning of the code would like like that ToC List Togglers jQuery document .ready function jQuery '.tutorial.. like like that ToC List Togglers jQuery document .ready function jQuery '.tutorial toc step c' .click function var stepnum this .data 'stepnum' if jQuery '.tutorial glyph check step ' stepnum .hasClass 'glyphicon unchecked' jQuery '#tutorial body.. List Togglers jQuery document .ready function jQuery '.tutorial toc step c' .click function var stepnum this .data 'stepnum' if jQuery '.tutorial glyph check step ' stepnum .hasClass 'glyphicon unchecked' jQuery '#tutorial body step ' stepnum .hasClass..