Hello all.

I would like to loop through all textboxes on a page and replace each textbox with it's default value.

So if I have:
Code:
<input name="user_name" type="text" value="solitario">
I would like to remove the texbox itself, and write the value to the page, and here's the kicker: where the textbox appears.

Right now I'm using a ridiculous set of stripos, strrpos, etc., functions. But I was wondering if this could be done with JavaScript.

Many thanks.