attr(key, value) set a single property to a value, on all matched elements.
<html> <head> <script type="text/javascript" src="js/jquery-1.3.2.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("button:gt(1)").attr("disabled","disabled"); }); </script> </head> <body> <body> <button>0th Button</button> <button>1st Button</button> <button>2nd Button</button> </body> </html>