trigger won't work in IE

trigger won't work in IE

Hi,

I'm using trigger in an ajax call to move the 1st tab to the 2nd tab(the result). It is working in firefox, but not IE(6-8)

Where did I get wrong?

Thanks

Here is my code:
The main HTML
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  5.         <title>Tabbed Poll</title>
  6.             <link type="text/css" href="css/style.css" rel="stylesheet" />   
  7.             <link type="text/css" href="css/custom-theme/jquery-ui-1.8.4.custom.css" rel="stylesheet" />   
  8.             <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
  9.             <script type="text/javascript" src="js/jquery-ui-1.8.4.custom.min.js"></script>
  10.             <script type="text/javascript">
  11.             $(function(){               
  12.                 $('#tabs').tabs();                               
  13.             });
  14.             </script>
  15.             <script type="application/javascript" src="js/script.js"></script>
  16.     </head>
  17.     <body>
  18.         <div id="tabs">
  19.             <ul>
  20.                 <li><a href="poll_display.php">Declaration of Faith</a></li>
  21.                 <li><a href="view_poll_result.php" id="viewresult">View Results</a></li>
  22.             </ul>
  23.            
  24.         </div>
  25.         <p id="msgerror" style="display:none;">Please select an answer</p>
  26.     </body>
  27. </html>

The part of the script where the trigger lies
  1. $.ajax
  2.     ({
  3.         type: 'post',
  4.         url: 'view_poll_result.php',
  5.         data: 'opt=' + opt +'&'+'qst_id=' +qst_id +'&'+ 'name=' + name +'&'+'email=' + email,
  6.         success: function(data)
  7.         {
  8.             $('#viewresult').trigger('click');
  9.             $.ajax
  10.             ({
  11.                  type: 'post',
  12.                 url: 'email.php',
  13.                 data: 'opt=' + opt +'&'+'qst_id=' +qst_id +'&'+ 'name=' + name +'&'+'email=' + email,
  14.              });
  15.             opt = '';
  16.             qst_id = '';
  17.             name = '';
  18.             email = '';
  19.         }
  20.     });//end of ajax
  21.     return false;
  22.     });


The complete script script

  1. $(document).ready(function()
  2. {
  3.     var opt;
  4.     $('#opt1').live('click',function()
  5.     {
  6.         opt = $('#opt1').val();       
  7.     });
  8.     $('#opt2').live('click',function()
  9.     {
  10.         opt = $('#opt2').val();
  11.     });
  12.    
  13.     $('#poll').live('submit',function()                         
  14.     {
  15.     var qst_id = $('#qst_id').val();
  16.     var name = $('#name').val();
  17.     var email = $('#email').val();
  18.     if ((opt != 'Yes')&&(opt != 'No'))
  19.     {
  20.         //Error message
  21.         $('#msgerror').dialog
  22.         ({
  23.         autoOpen: true,   
  24.         title: 'Declaration of Faith',
  25.         height: 250,
  26.         modal: true,
  27.         resizable: false,
  28.         draggable: false,
  29.         dialogClass: 'alert',
  30.         buttons: {
  31.             "Ok": function()
  32.                 {
  33.                     $(this).dialog("close");
  34.                     $('body').css(
  35.                     {'overflow': 'auto',
  36.                     'height' : 'auto',
  37.                     'width' :'auto'
  38.                     });
  39.                 }
  40.             }
  41.         })
  42.         return false;
  43.     }
  44.    
  45.     $.ajax
  46.     ({
  47.         type: 'post',
  48.         url: 'view_poll_result.php',
  49.         data: 'opt=' + opt +'&'+'qst_id=' +qst_id +'&'+ 'name=' + name +'&'+'email=' + email,
  50.         success: function(data)
  51.         {
  52.             $('#viewresult').trigger('click');
  53.             $.ajax
  54.             ({
  55.                  type: 'post',
  56.                 url: 'email.php',
  57.                 data: 'opt=' + opt +'&'+'qst_id=' +qst_id +'&'+ 'name=' + name +'&'+'email=' + email,
  58.              });
  59.             opt = '';
  60.             qst_id = '';
  61.             name = '';
  62.             email = '';
  63.         }
  64.     });//end of ajax
  65.     return false;
  66.     });
  67. });