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..
Comments
Post a Comment