Find the very next sibling of each disabled button and change its text "this button is disabled".
<html> <head> <script type="text/javascript" src="js/jquery-1.3.2.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("p").next().text("asdf"); }); </script> </head> <body> <body> <p>bad or .</p><span>good</span> </body> </html>