[jQuery] change the attribute value, when button is clicked

2007-11-13 Thread figo2476
It is not working... I am not sure what should I do html head script type=text/javascript src=jquery.js/script script type=text/javascript charset=utf-8 $(document).ready(function(){ $('#link1').click(function(){ alert('yo');

[jQuery] select the last 2 elements in list

2007-10-20 Thread figo2476
e.g. ul lia/li lib/li - lic/li - /ul I did: script type=text/javascript $(document).ready(function() { $(#update li:last).addClass(last_li); $(jQuery.sibling(#update li:last).prev).addClass(sec_last_li); }); /script The last