So I have a basic HTML <select> element where a user can select a number.
What I then need to do is create some list items in an unordered list based on the number they selected.
What’s the most efficient way to do that with jQuery?
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.
The most efficient method may vary across browsers, but I would imagine that setting the
innerHTMLof a<ul>with a string of html elements would offer the best performance.Here’s a Working Demo
and HTML