I have looked all over and cannot figure out why this code isn’t working.
When the drop down is set to value “3” or “4”, then another field should pop up below the drop down list.
Any ideas?
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.
Fixed Working Version
First you needed to call
.val()like it was pointed out.Then based on the selector you are using you need to use
parseInt()on the val to make it a number like soYou also had an extra comma when defining your array.
Full Working Code