summerpewp Posted May 29, 2010 Share Posted May 29, 2010 I have text boxes where I edit information, and from that information it updates a preview window onChange. There are ~ 40 fields that do this. So What I wanted was a form that would show every possible text field, when its edited, in the "preview window" it will show the information. I've tried many sites with explanations of javascript that do it, but either they dont work correctly for some reason, or it doesn't exactly do what I want. If someone could point me in the right direction It would greatly help. For instance: NAMESUMMER AGE PHONE888.333.3333 Would display upon change (not refreshing the page) in the preview window as: NAMESUMMER PHONE888.333.3333 Quote Link to comment Share on other sites More sharing options...
twoweektrial Posted June 1, 2010 Share Posted June 1, 2010 If you could post the javascript you've written that would be helpful. Aside from that you'd want to do something like function change(element) { if(element.id == 'name') { document.getElementsById('preview_name').innerHTML = element.innerHTML; } } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.