Getting input values with arrayed names

Getting input values with arrayed names

Hey guys,

i'm using the slider ui and some hidden input fields to store percentage values in it.
I'm having no issue with the plugin itself but with the way jquery gets it's html elements, that's why i'm posting here.

On change the sliders change the value of that hidden field so i can submit the form to get the data into the database.

My problem is that i have multiple sliders on one site and because of that multiple hidden input fields.

All have their own name like "percent[17]" or so.

I'm using this code to get the hidden inputs and change their values:
  1. $("input[name=percent\[17\]]").val(ui.value);
I'm hundred percent sure it worked but now it's not working anymore. :(

Should it work or is that "query" to find the html element wrong?



Sry 4 my bad english.

Gr33tZ
Rn