Is it possible to dump a innerhtml into a form value?
I have a div tag with an id.
<div id="productResult"></div>
I want to dump the value into a variable and add it to a url. it just doesn't work!@! I am using prototype.
This is what I do
var s = $('productResult').innerHtml
document.thisform.action = 'myfile.cfm?SKU='+s'
What am I doing wrong?! Thanks guys!
I have a div tag with an id.
<div id="productResult"></div>
I want to dump the value into a variable and add it to a url. it just doesn't work!@! I am using prototype.
This is what I do
var s = $('productResult').innerHtml
document.thisform.action = 'myfile.cfm?SKU='+s'
What am I doing wrong?! Thanks guys!