How to get elements with the different value of the same attribute in javascript or jquery? -


i need find elements different value of same attribute... works-> $data.find("div[data-alpha='1']"); need this-> $data.find('div[data-alpha='1']' + 'div[data-alpha='2']' .... want find elements have ,,data-alpha" atribute 1 or 2. have idea how that? answers! cheers!

use multiple-selector[docs].

$data.find("div[data-alpha='1'], div[data-alpha='2']") 

this allows accumulate results of different selectors joining selectors comma single selector.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -