I have a basic bit of JavaScript that I'm using to hide an object based on a value on the form.
Code: Select all
var dt = $('#dish_mealtype_id').val();
if (!(dt=="2" || dt=="4" || dt=="6" || dt=="7"))
{
nuHide('recipe_card');
nuHide('dish_image_upload');
}
recipe_card object is a button run object
dish_image_upload is a file input object
Any thoughts as to why this might be the case? Or if I'm doing something wrong?
Many thanks in advance for any help you can provide.