+ 1
How to Get value of attributes using other attribute same tag (SOLVED)
<li><a tabindex="-1" data-value="RL" selected="selected">Rated Lead <li><a tabindex="-1" data-value="MJL">My Job Lead I want to fetch data-value where selected = selected https://code.sololearn.com/W0JLCAt0XuE4/?ref=app
3 Respostas
+ 2
Isn't that working for you?
When I click a select menu item for "Related Lead", the alert says "RL". RL corresponds with data-value="RL". That's what you're describing so did you fix your problem after posting this question?
This line looks good too:
alert (jQuery('.clickdp li a[selected="selected"]').data("value"));
+ 1
glad you solved it
0
Josh Greig Yes, I have solved yesterday..