Thursday, 15 May 2014

javascript - Change one form select option based on other selection -


I am using this code. I am using the internal script. I am able to see the selection first; But the price of the second selection is not changing due to the first selection. I'm missing some basic things, please help. Please provide an example.

  & lt ;! DOCTYPE html & gt; & Lt; Html & gt; & Lt; Body & gt; & Lt; Script & gt; $ (Document) .ready (function () {$ ("# type"). Change (function () {var val = $ (this) .val (); if (val == "item1") {$ (" Html ("option value = 'test'> item1: test1 

No comments:

Post a Comment