In firefox the follow code works fine
$(document).ready(function() {
$(".form_con").hide();
$("[EMAIL PROTECTED]").change( function() {
if($.browser.safari) {
if(this.value != 0)
$(".form_con").hide();
$("#form" + (this.value)).show();
} else {
if(this.value != 0) {
$(".form_con").hide();
$("#form" + (this.value)).fadeIn("slow");
}
}
});
});
But in IE the above code does not work, I thought it would be an issue
with using swfobject with jquery buty I patched that up and the issue
is still unsolved.
It's pretty simple code, it hides 4 forms on load and then whatever
option you select from the select list, it shows the form. It works
fine in Firefox but in IE when I submit the page and do my regular
expression checks it shows all forms which is not correct.
Here is the on submit code,
$(document).ready(function() {
$(".form").hide();
$("#form" + (<?php echo $contype; ?>)).show();
$('#conveyancing_list').attr('disabled', 'disabled');
$("[EMAIL PROTECTED]").change( function() {
if($.browser.safari) {
if(this.value != 0)
$(".form").hide();
$("#form" + (this.value)).show();
} else {
if(this.value != 0) {
$(".form").hide();
$("#form" + (this.value)).fadeIn("slow");
}
}
});
});
$contype being the form from the previous page which was selected,
this is so it shows the correct form errors.
Thanks alot
--
--
Jack Gleeson
Web Developer
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/