Hi there,
I feel that I am in need of some help with a jQuery problem.
Well right now it's not really jQuery since I haven't done anything, but I
want it made for jQuery.
This is what I want :) ::

I have an array of values and id's in php that I easily can put into jQuery
arrays.
Let's say I put them in option[] and value[].
Then I print out two input boxes:
<input type="hidden" name="id" value="value[0]">
<input type="text" name="name" value="option[0]">

Then I want a line / span / p that makes so the input values change.
Let's say I have the text:
<p>+increse+</p>
and on that I want an onclick event that changes the two input boxes to:
<input type="hidden" name="id" value="value[1]">
<input type="text" name="name" value="option[1]">

So increse and decrese links to lower and raise the array id so that the
input values change.
Then something to block it from going higher than the max input in the array
and lower than 0.

I hope that someone understands what I want and that someone also can help
me.

-----
Best regards
Magnus 'XeroXer'
-- 
View this message in context: 
http://www.nabble.com/Changing-input-value-from-an-array-tp17271713s27240p17271713.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to