In my form I have a field named Asset type (Select ). It could be car, building etc.
I want to display form fields ,plate number,Make , and Model all input text. If the the assest type is Car. Pls note I understand dynamic selection. This is different. I want the whole form field hidden if Car is not selected . Thanks
Hide Form fields based on condition
-
- User
- Posts: 407
Hide Form fields based on condition
-
- User
- Posts: 407
This is working :
// Write your table-specific startup script here, no need to add script tags.
$("#x_Category_Temp").change(function() {
if ($(this).val() == "Motor Vehicle") {
$('#x_Make').show();
} else {
$('#x_Make').hide();
}
});
$("#x_Category_Temp").trigger("change");
i just need to add the id for label . Thank you