Would it be possible to select a table with a specific width ?
Thanks
jQuery width() Method The width() method sets or returns the width of the selected elements. When this method is used to return width, it returns the width of the FIRST matched element. When this method is used to set width, it sets the width of ALL matched elements.
The size() method returns the number of elements matched by the jQuery selector.
The jQuery outerWidth() and outerHeight() methods get or set the outer width and the outer height of the element respectively. This outer width and height includes padding and border but excludes the margin on the element.
jQuery outerWidth() Method The outerWidth() method returns the outer width of the FIRST matched element. As the image below illustrates, this method includes padding and border.
Use the filter()
function:
$('table').filter(function() {
return $(this).width() > 700;
});
Yes like this:
$('table[width="700"]')
Or you can get all tables having width with whatever value like this:
$('table[width]')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With