Is there any other way to process a form when a person choose one option from one select it changes the results in other select. Otherwise Safari browser does not execute my code.
Here is the jQuery code:
$(document).ready(function(){
$('select[name=nm_field_3]').click(function(){
var other_options = $('select[name=nm_field_4] option[value="120cm"]');
var selected_option = $('select[name=nm_field_3] option:selected');
if(selected_option.text() == 'Brown')
{
other_options.hide();
}
else
{
other_options.show();
}
});
});
Here js fiddle: http://jsfiddle.net/aq710agd/2/
I mean this works but not all of the browsers support it. That's why I'm looking for a proper way.
Thanks for help :)