<!DOCTYPE html> <html> <head> <style> </style> <title>Try jQuery Online</title> <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <script> $(function() { $("#button1").css('background-color','red'); }); </script> </head> <body> <div id="div1"> <input type="button" id="button1" value="Click Me" /> <input type="button" id="button1" value="Click Me" /> </div> </body> </html>
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more