3 Answers
New Answer<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
4/8/2021 1:53:07 PM
Dhaval Makwana3 Answers
New AnswerIsn'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"));
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message