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
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"));