Welcome Guest, Not a member yet? Register   Sign In
How to repopulate form inputs (arrays)
#1

[eluser]RS71[/eluser]
Hello

I was wondering on how I might be able to repopulate inputs with array names.

Something like this:

Code:
<input type="text" name="tel[]" value="" id="tel" class="inputtext tel"  />

(I am currently using form helpers to create the inputs.)

Another question:

Lets say I have 2 default inputs like the ones above but more identical ones are created dynamically via jQuery. What would be the most effective way to make it so that the dynamic inputs created reappear in case of validation failure (with their inputted values)?

Thanks in advance.


Messages In This Thread
How to repopulate form inputs (arrays) - by El Forum - 01-10-2009, 10:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB