Dear all,
I have multi-page form,
1st form only contain dropdown. And second form contains 3 texbox with id; text5, text6, and text7.
I want to hide and show textbox conditionally. I put js code on page2 event before html render
This code was do nothing, with no error. Maybe I miss something?
Thank you
I have multi-page form,
1st form only contain dropdown. And second form contains 3 texbox with id; text5, text6, and text7.
I want to hide and show textbox conditionally. I put js code on page2 event before html render
jQuery(document).ready(function (jQ) {
jQ('#dropdown').change(function () {
var opt;
opt = jQ(this).val();
if (val == 1) {
jQ('#form-row-text5').show();
jQ('#form-row-text6').hide();
jQ('#form-row-text7').hide();
} else {
jQ('#form-row-text5').hide();
jQ('#form-row-text6').show();
jQ('#form-row-text7').show();
}
});
});
This code was do nothing, with no error. Maybe I miss something?
Thank you