Remove an item from a checkbox list by its value using jQuery -


i remove item checkbox list using value

<input type="checkbox" name="chk" id="chk0" value ="chicken"> $("#chk0:checkbox[value='chicken']").parent().remove(); 

i trying remove item not working. need assistance.

if "#chk0" container. need use

$("#chk0 :checkbox[value = 'chicken']").parent().remove(); 

note space between id , :checkbox

otherwise checkbox id ="chk0" instead of checkbox inside of container.

but if #chk0 id input work fine..

fiddle


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -