| | |
JS variable inside HTML
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
•
•
i wonder how can write a JS variable inside HTML
here's the Line:
var texture=document.getElementById('texture').value;
formdiv.innerHTML = formdiv.innerHTML +'<td align=center> JS VARIABLE TEXTURE</td>';
any help is appreciated
var texture=document.getElementById('texture').value;
formdiv.innerHTML = formdiv.innerHTML +'<td align=center>' + texture + '</td>';
Hope this Helps.
Regards
![]() |
Similar Threads
- PHP tags into HTML tags (PHP)
- Using php variables inside an array (PHP)
- How to insert image in MySQL....... (PHP)
- how do i use php?id and what are they? (PHP)
- get html element value using php (PHP)
- Learning PHP but problem with script (PHP)
- Repeat text from somewhere else in a document without actually writing it! (PHP)
- Help needed in simple app while using XML,XSL (XML, XSLT and XPATH)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Capturing line number at the current cursor position
- Next Thread: Button to send POST data
| Thread Tools | Search this Thread |
Tag cloud for JavaScript / DHTML / AJAX
acid2 ajax ajaxcode ajaxhelp animate api automatically beta boarder box bug calendar captcha card cart checkbox child class column cookies createrange() css cursor decimal design dom download dropdown editor element enter error events explorer firehose focus form forms frameworks google gwt html htmlform ie8 iframe image() images index internet java javascript jawascriptruntimeerror jquery jsf jsfile jump listbox math matrixcaptcha menu microsoft mimic mp4 object onmouseover onreadystatechange parameters parent php player post problem progressbar prototype rating regex runtime scale search select session shopping size sql starrating stars stretch text textarea twitter validation w3c web website window windowofwords windowsxp wysiwyg xml \n





