views:

49

answers:

1

I am using following jquery method

$('form').submit(function(){    
    $('#universities_selected option').each(function(i) {    
       $(this).attr("selected", "selected");    
    });
});

when we submit form this method is called and it checks all the entries in multi select list "universities_selected" and set them as selected....

It works fine in firefox but not working in google chrome.

+1  A: 

I think this answers your question:

http://www.corbensproducts.com/cgblog/49/jQuery-and-form-submit-in-Chrome.html

Claudiu