Welcome Guest, Not a member yet? Register   Sign In
checkbox based input item
#12

The jQuery script is looking for an input named "sets[]". If that doesn't exist on the page, nothing will happen.
The inputs should have a name with brackets, like india[], not india, and sets[] rather than sets.
Thats because you build the inputs in a loop, and every input should get a unique name. If you use "india" as the name, only the first element with that name will be posted when you submit the form. If the name is "india[]", the result will be an array of values when the form is submitted.
Reply


Messages In This Thread
checkbox based input item - by kvanaraj - 08-20-2018, 11:35 PM
RE: checkbox based input item - by Pertti - 08-21-2018, 12:28 AM
RE: checkbox based input item - by kvanaraj - 08-21-2018, 01:40 AM
RE: checkbox based input item - by Pertti - 08-21-2018, 02:02 AM
RE: checkbox based input item - by kvanaraj - 08-21-2018, 02:34 AM
RE: checkbox based input item - by kvanaraj - 08-24-2018, 12:54 AM
RE: checkbox based input item - by InsiteFX - 08-24-2018, 03:13 AM
RE: checkbox based input item - by Wouter60 - 08-24-2018, 07:41 AM
RE: checkbox based input item - by kvanaraj - 08-24-2018, 11:00 PM
RE: checkbox based input item - by Wouter60 - 08-25-2018, 12:18 AM
RE: checkbox based input item - by kvanaraj - 08-25-2018, 12:44 AM
RE: checkbox based input item - by Wouter60 - 08-25-2018, 02:54 PM



Theme © iAndrew 2016 - Forum software by © MyBB