[jQuery] Generate <input> "onBlur"
Ok I am really new to jQuery, I started using it for a thickbox and
just added functionality to the whole site.
Now I have a problem that I think jQuery can solve, but I don't know
how.
I have a input box like this:
<input type="text" name="option[1]">
And after that I have:
<input type="text" name="value[1][]">
What I want to do is that when you have entered something in the
option[1] box the script should generate a new option[2] with the
value[2][] input below.
If something is entered into value[1][] it should generate a duplicate
of it, not the value but the same name.
If you enter some info it should be able to be like this:
<input type="text" name="option[1]">
<input type="text" name="value[1][]">
<input type="text" name="option[2]">
<input type="text" name="value[2][]">
<input type="text" name="value[2][]">
<input type="text" name="value[2][]">
<input type="text" name="option[3]">
<input type="text" name="value[3][]">
<input type="text" name="value[3][]">
I have no idea even how to start with this but I hopw that someone can
help me.
-----
Best regards
XeroXer