I am trying to display a div if user select a specific option value from a select drop down list.
Example:
The select drop down list consist of dynamic names fet
Change this.select
to this
:
<select id="getFname" onchange="admSelectCheck(this);">
Then it should work okay. Also if you have jQuery
you can simply do:
$("#getFname").change(function() {
var val = $(this).text();
if (val != "Admin") {
$("#div").show();
}
});
Will supply a pure JS function too.