I’m new to jQuery and I’d like to take an unsorted list and do the following: http://i.min.us/idAMoq.png
How would one accomplish separating list items based on the beginning letter?
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’ve used this example HTML:
Include jQuery library in the
<head>:jQuery (added after UL or in
$(function(){/*code here*/})):and at the end you’ll get this HTML:
Hi, small update, pure JS version should be working with prototype, jQuery or without any:)
Just stick it below the code or in any onload/ready statement.
Cheers
G.