I would like to change the content of a select list if i choose something special in another select list, for example if i choose "Even" on select list 1 i would like to be able to choose between 2 ; 4 ; 6 ; 8 on Select list 2, same for "Odd" (1 ; 3 ; 5 ; 7 ; 9).
Asked
Active
Viewed 50 times
0
-
possible duplicate of https://stackoverflow.com/questions/4480637/how-to-change-a-selections-options-based-on-another-select-option-selected – Harpreet Singh Jul 22 '17 at 05:53
-
Haven't learned jquery for now, is it totaly nescessary? – Millefeuille Jul 22 '17 at 06:00
-
well you can learn jQuery. it will help you reduce your code compare to javascript – Harpreet Singh Jul 22 '17 at 06:01
-
Ok, so, is there any possibility external to jquery ? – Millefeuille Jul 22 '17 at 06:02
-
Most threads on SO are from jquery. – Harpreet Singh Jul 22 '17 at 06:07
-
Most threads on SO are from jquery. – Harpreet Singh Jul 22 '17 at 06:07
-
How to use Jquery ? place it in .js like javascript ? – Millefeuille Jul 22 '17 at 06:21
-
include jquery cdn and then you can use jquery with same as js – Harpreet Singh Jul 22 '17 at 06:22
-
check this:- https://www.w3schools.com/jquery/tryit.asp?filename=tryjquery_lib_google – Harpreet Singh Jul 22 '17 at 06:24