I am using a multi-part form within the jQuery UI accordion. When a user clicks on "next," the next section that has not already been submitted opens. It is not working properly in IE 8 - the next section does not open. Anyone have any thoughts on what I can do here to ensure compatibility with IE 8?
EDITED UDPATE TO QUESTION: Using IE Developer Tools, I found that the code is breaking at "next=i." The error states "Object doesn't support this property or method." Any thoughts as to what I'm doing wrong here?
$(":submit").live('click', function() {
whichButton = $(this).val();
})
$("#selection-form").validate({
submitHandler: function(form) {
var acc = $("#accordion");
//...
complete: function(e) {
$('#selection-information').attr('state', 1);
acc.children('.step').each(function(i){
if($(this).attr('state') == 0)
{
next = i;
return false;
}
})
if(whichButton=='complete'){
acc.accordion('activate',next);
}
//...
UPDATE: The problem seems to be with trying to activate with "next," rather than with a specific index number (even though "next" is supposed to identify the index to open). If I replace "next" with an actual index number, that section opens. Any thoughts on how to fix this specific problem?