5
How can I find a particular attribute that contains another specific attribute? for example:
<a class="fc-draggable" data-belongs="3" data-target="2"></a>
I can select all elements that contain a certain attribute using:
$('*[data-belongs="3"]');
But how do I select all data-belongs='2'
containing data-target='3'
?
Have you tested
$('[data-belongs="2"][data-target="3"]');
?– Sergio
http://answall.com/a/67901/129
– Sergio
@Sergio if you want to select everyone who
não tenham
this attribute as I would do?$('a[data-belongs]').not('[data-belongs="'+current+'"][data-target="'+target+'"]').hide();
?– RFL
Exactly... that would work
– Sergio
@Sergio, post the answer for me to confirm!
– RFL