21 January 2014

jQuery width() Method

$(selector).width()

Ex

<script>
$(document).ready(function(){
  $("button").click(function(){
    alert("Width of div: " + $("div").width());
  });
});
</script>

No comments:

Post a Comment