Hi,
I'm making a webpage, where in there is a dropdown and I select that value and hit click.
There is a javascript function containing some variables with the same ID as that of the dropdown values(option id). And there is an array of the same variables declared. Once I hit the click button i want the value that is selected in the dropdown, to be matched with the variable in variable array created and alert the same.
Currently it is not alerting any, if i add an else block, that gets triggered. Below is my JS.
And here is my full code in fiddle.
JSFiddle
please let me know how can i compare and get the correct result in the alert box.
Further i need to create a dynamic table here based on the data.
Thanks,
Marsoni