Hi quick help
how can i go back to one selecotr in the hierarchy
eg:
<ul id="selector">
<ol id="list">
</ol>
<br>
<ul id="itens">
<li>test 01</li>
<li>test 02</li>
<li>test 03</li>
</ul>
</ul>
when i click on the LI tag
its will be add same item on teh OL tag
with this
$("#selector ul li").click(function () {
$str_option = $(this).text();
$( "#list").append( "<li>" + $($str_option).selector + "</li>" );
this work fine
but if i have more those codes on the page... how can i use something
without selector
$( "#list")
can i uset the
$(this)
and back to a parent id?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---