Set width of any element using JQuery

Posted by Virendradugar under jQuery category on | Views : 30087
This code will set/overwrite the width of dvWidth element using JQuery. You can download the Jquery from

<script type="text/javascript" src="Script/jquery-1.3.2.js"></script>
<script type="text/javascript">

<div id="dvWidth" style="width:300px">
<h1>Virendra Dugar</h1>

Find out difference between width() vs css('width') and height() vs css('height')


Comments or Responses

Login to post response