mardi 29 septembre 2015

Inserting a checkbox via jQuery stops the form to submit on webkit

I have a basic form with button and a checkbox inside it. The checkbox is loaded via jQuery like this:

jQuery('.markitfixed').prepend('<input type="checkbox" /> ');

When you click on the checkbox within the submit button (with class markitfixed), nothing happens on webkit browsers (Chrome, Safari...)

It works fine on Firefox.

To demonstrate this, open jFiddle demo and click on the checkbox.

What can I do to make it work on webkit browsers?




Aucun commentaire:

Enregistrer un commentaire