// prepare the form when the DOM is ready 
$(document).ready(function() { 
  $('#ajaxPoll').ajaxForm({ 
    url: 'ajax.php?func=poll',
    target: '#ajaxResponse', 
    success: function() { 
      $('#ajaxPoll').fadeOut('slow');      
      $('#ajaxResponse').fadeIn('slow');      
    } 
  }); 
});