, .
First there are conditional comments, i.e.
<!--[if !IE ]>
<script>
$('#dialog').append(iframe).appendTo("body").dialog({
autoOpen: false,
modal: true,
resizable: false,
show: 'slide',
width: 800,
height: 700,
close: function() {
}
});
$('#dialog_click').click("callback",function() {
$('#dialog').dialog('open');
return false;
});
</script>
<![endif]-->
Or you can check the jquery browser variable as other guys point out.
Also, if you go this way, and you really want to target the old version of IE, you can use some functions specific to it (for example, attachEvent)
source
share