Link to home
Start Free TrialLog in
Avatar of RadhaKrishnaKiJaya
RadhaKrishnaKiJaya

asked on

Delete all the items under <ul> using an custom attribute

Hi Experts,
It is possible to delete all the  <li> items from a <ul> where the attribute is data-select-id="SelectState" using jQuery?

<div data-select-id="SelectState">
	<ul class="opts" style="display:none">
		<li> Test1 </li>
		<li> Test2 </li>
	</ul>
</div>

Open in new window


Thanks in advance!
ASKER CERTIFIED SOLUTION
Avatar of Jeffrey Dake
Jeffrey Dake
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
no need to put the tags uppercase
Avatar of RadhaKrishnaKiJaya
RadhaKrishnaKiJaya

ASKER

Thank you so much! This is exactly what I wanted!!