Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- domain.com/section/red.html
- domain.com/section/blue.html
- domain.com/section/green.html
- <div id="list">
- <ul>
- <li class="red"></li> (to red.html)
- <li class="green"></li> (to green.html)
- <li class="red"></li> (to red.html)
- <li class="blue"></li> (to blue.html)
- <li class="red"></li> (to red.html)
- <li class="green"></li> (to green.html)
- </ul>
- </div>
- $("#submit").click(function(e){
- e.preventDefault();
- alert($("ul").find(".red").text());
- });
Add Comment
Please, Sign In to add comment