jquery Programming Glossary: current_segment
How to get next text element of iframe on click each time? http://stackoverflow.com/questions/14153160/how-to-get-next-text-element-of-iframe-on-click-each-time Here is my code function '#next' .click function var current_segment '#my_iframe' .contents .find .highlight if current segment has.. .find .highlight if current segment has children if current_segment .children .not '.traversed_already' .length 0 current_segment.. .children .not '.traversed_already' .length 0 current_segment .children .not '.traversed_already' .first .addClass 'highlight'..
How to get next text element of iframe on click each time? http://stackoverflow.com/questions/14153160/how-to-get-next-text-element-of-iframe-on-click-each-time very ugly but i guess there must some simple solution available. Here is my code function '#next' .click function var current_segment '#my_iframe' .contents .find .highlight if current segment has children if current_segment .children .not '.traversed_already'.. '#next' .click function var current_segment '#my_iframe' .contents .find .highlight if current segment has children if current_segment .children .not '.traversed_already' .length 0 current_segment .children .not '.traversed_already' .first .addClass 'highlight'.. .find .highlight if current segment has children if current_segment .children .not '.traversed_already' .length 0 current_segment .children .not '.traversed_already' .first .addClass 'highlight' current_segment .removeClass 'highlight' add class to stop..
|