I have a search field validation that I do not ran if the browser is IE8.
Here's my javascript:
<script type="text/javascript">
jQuery("#mini-search-form").submit(function() {
var match =/[a-zA-Z0-9]+/.exec(jQuery('#mini-search-form #query').val());
if(!match){
alert("Please enter valid search words.");
return false;
}
return true;
});
</script>
I tried just surrounding that script with <![if !IE 8]>
but Dreamweaver said that this was wrong.