If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Enjoy an ad free experience by logging in. Not a member yet? Register.

when i click on 1st ul with specific data-value, in 2nd ul li with that specific data-value should display.
Eg: If I select My Patient in first UL it should display LI with same data-value("My patient")

You can also use $(this).data('value') instead of $(this).attr('data-value').

Using .data() is more useful especially if you have data attributes that you don't want to treat as strings as it automatically converts the string value to booleans, numbers, objects, arrays, or null.