I have a column name "Order" and if order is equal to "Car" then show the "Warranty" field, else hide it. I am using script editor for this and here is my code and someone it is not working. Can you point me to a right direction.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js" type="text/javascript"></script>
<script>
if ($("select[title='Order']").val() != "Car")
{
$(document).ready(function(){
$("nobr:contains('Warranty')").closest('tr').hide();
});
}
else
{
$(document).ready(function(){
$("nobr:contains('Warranty')").closest('tr').hide();
});
}
</script>