Editor Arrow Download Open
<!DOCTYPE html> <html> <head> <title>jQuery width() method</title> <script src="jquery-latest.min.js"></script> <script> $(document).ready(function(){ $("button").click(function(){ $("p").width("200px"); }); }); </script> </head> <body> <p style="background-color: pink;">First paragraph start here...</p> <button>Click here to call width() method to set width</button> </body> </html>
  Preview Arrow