Wednesday, August 19, 2015

find any elemnts height and width in object formate using javascript

<code>
<script>
var ul = $('.TokensContainer');
var p=ul.outerWidth(Math.max(ul.width('').outerWidth()));
alert('height is - '+p[0]['clientHeight']);
console.log(p);
</script>
</code>
must check in console.log

No comments:

Post a Comment