It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

onchange question

onchange question

Postby sbrown68 on Mon Sep 17, 2007 12:17 am

Hi

Could someone tell me how to put the output of an onchnage function into standard text. I can easily put it into a text box but I want it to show just normal text on a webpage.. without being inside the text box.

Cheers
sbrown68
 
Posts: 13
Joined: Sat May 19, 2007 9:47 am

Postby bobbyblades on Mon Sep 17, 2007 12:34 am

if it's just normal text set the innerHTML to the element you want the text in


document.getElementById("output").innerHTML = "output text";


<div id="output"></div>
User avatar
bobbyblades
50+ Club
 
Posts: 85
Joined: Fri Aug 24, 2007 8:38 pm
Location: hawaii or bust


Who is online

Users browsing this forum: No registered users and 6 guests