Deaf Topics - Herbal Supplements - Manga - Funbrain Games - Free Animated Greetings

PDA

View Full Version : Putting a variable in document.


bwilky
Sep 1st 2008, 8:40 pm
var textbox = 'sku_field';
var formbox = 'sku';
var MyElement = document.getElementById(textbox);
var fieldtext = document.sku.sku_field.value;

How would I put the variable texbox where sku_field?

Thanks,
Bryce

Sleeping Troll
Sep 2nd 2008, 10:04 am
You would have to use a serverside script to post the variable there or alternatively you will need to write to the DOM. Sorry, but there are no short cuts.