Vote count: 0
I have been working on a project in which I have two Selects in html code.
The second select should be enable only when the first select satisfies some condition.
here is the JSfiddle link.
$(document).ready(function() {
$('select').material_select();
$("select[name=type]").change(function() {
alert("hola");
if (this.value == "1") {
$("select[name=Effect]").prop("disabled", false);
} else {
$("select[name=Effect]").prop("disabled", true);
}
});
Note : Jquery without materialize is working fine perfectly.
Any kind of help would be fine.
Jsfiddle code would be cool. :)
asked 44 secs ago
jquery is not working along with Materialize for select option hiding
Aucun commentaire:
Enregistrer un commentaire