In FF this hides all divs and then shows the id that was selected from the '#rule_rule_type' menu, which is the expected behavior. In IE 8 it does not hide all div id's:
<script type="text/javascript" charset="utf-8">
(function($){
$('#rule_rule_type').change(function() {
$('#allowed_senders, #blocked_senders, #blocked_character_set, #custom').hide();
var id = $(this).val();
$('#' + id).show();
});
})(jQuery);
</script>
However, this DOES work in IE 8:
<script type="text/javascript" charset="utf-8">
(function($){
$('#rule_rule_type').change(function() {
$('#allowed_senders').hide();
$('#blocked_senders').hide();
$('#blocked_character_set').hide();
$('#custom').hide();
var id = $(this).val();
$('#' + id).show();
});
})(jQuery);
</script>
This is messy. How can I clean this up to be more concise and still work in IE 8?
Thanks,
Chip Castle
http://invoicethat.com