acvwilson / dirty_form

A jQuery plugin for alerting users to unsaved changes to forms before they leave a page or tab...
GNU General Public License v2.0
73 stars 7 forks source link

checkbox, radiobutton not working in Chrome :( #9

Open ermauliks opened 11 years ago

ermauliks commented 11 years ago

I was trying in Chrome, page is getting redirected even if its changed, in case of radio button and check box.

groogiam commented 10 years ago

I ran into this as well. Change line 24 to return input.is(":checked"); and things should work. Firefox and chrome do not add the checked attribute to the DOM element when the box is checked/unchecked

ermauliks commented 10 years ago

Thanks so much, I will surely try this out.