Bear Bibeault wrote:Welcome to the Ranch!
What relationship do the checkboxes have with the list element? They're not related structurally. Is it through the class names?
Yes each category is entered into a span and has that class name in addition to the html shown
By the way, you're code is really hard to read. What's up with all the excess and extra white-space? It'll be easier for folks to help you if you make sure that your code is well-formatted before posting (and be sure to UseCodeTags).
This forum is intended for questions and comments about the web sites www.javaranch.com and www.coderanch.com.
It is not for questions about the Java language - that's what all our other forums are for.
Sam Burns wrote:What would be the best way to filter the <li>'s based on the user click the check boxes....If the check box is not contained in an <li> then I would like that <li> to hide....Initially all <li>'s will show....if the user unchecked the list box then the <li>'s will begin to show again as long as they meet the requirements if other check boxes are shown....Thank you for the help
Sam Burns wrote:... then any <li> that has artichoke as a category will display...
Sam Burns wrote:I am not sure how to tell jquery to look at all the <li>'s and search for the child <span>'s with the given class name that matches a checked check box and show these <li>'s and hide the <li> elements if the <span> elements do not match the selected check box items