Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery: How can i select all elements whichs width is more than 400? [duplicate]

Possible Duplicate:
Select div with specific width

Is there a way to select all elements based on dimensions? LIKE

$('*[width()>'400px']')
like image 774
mr_app Avatar asked Feb 06 '12 16:02

mr_app


People also ask

Which is the correct jQuery selector to select all even table rows?

The :even selector selects each element with an even index number (like: 0, 2, 4, etc.). The index numbers start at 0. This is mostly used together with another selector to select every even indexed element in a group (like in the example above).

How do you select all elements by tag?

The * selector selects all elements. The * selector can also select all elements inside another element (See "More Examples").

Which is the correct jQuery selector to select all button elements and input elements with type input?

The :button selector selects button elements, and input elements with type=button.


1 Answers

$("*").filter(function () {
    return $(this).width() > 400;
}).hide();
  • http://api.jquery.com/filter/
like image 183
karim79 Avatar answered Oct 31 '22 04:10

karim79