How to get html tag based on attribute text in Jquery ?

Jan 20 2016 8:08 AM
Hi Team.
I have data like below format.
<span id="1" dnd-draggable={value:'a',text:'apple'}/>
<span id="2" dnd-draggable={value:'b',text:'bat'}/>
here i want to get 'span' tag based on 'value' in dnd-draggable attribute.
for example:
if i give 'a', i will get first 'span' tag.
Thanks
Nanda Kishore.CH

Answers (1)