mohit
mohit

Reputation: 1973

jquery not working with chrome

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.

Upvotes: 1

Views: 224

Answers (1)

Claudiu
Claudiu

Reputation: 3261

I think this answers your question:

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

Upvotes: 1

Related Questions