jeudi 30 juillet 2015

Insert checkboxes values(name) into input with jQuery

I'm working with Symfony and I have a lot of checkboxes with different id and value, so when I check one, i want to automatically insert its value (name) into an input and when I check other insert its value in the same input:

<input type="checkbox" name="{{ent.username}}" value="{{ent.username}}">

Thanks everyone




Aucun commentaire:

Enregistrer un commentaire