java - submitting a multiple values and hidden values on checkbox in html -


is there way submit multiple form fields tying 1 checkbox eg:

<input type=hidden name=code value="cycle_code" />

<input type=checkbox name=vehicle value="cycle" />

<input type=hidden name=code value="car_code" />

<input type=checkbox name=vehicle value="car" />

i want able check car , car_code submitted also. , same cycle

you use javascript dynamically set value of hidden field.


Comments

Popular posts from this blog

Javascript line number mapping -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -