| | |
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 |
ajax ajaxcode ajaxexample ajaxhelp ajaxjspservlets animate array automatically browser bug calendar captchaformproblem cart checkbox child close codes createrange() cursor date debugger dependent disablefirebug dom dropdown editor element embed engine enter events explorer ext file firefox form forms frameworks getselection google gxt hiddenvalue highlightedword hint html htmlform ie7 ie8 iframe images internet java javascript javascripthelp2020 jawascriptruntimeerror jquery jsf jsfile jsp jump libcurl maps masterpage math media microsoft object onmouseoutdivproblem onreadystatechange parent paypal pdf php player position post programming progressbar prototype redirect regex runtime safari scale scriptlets scroll search security shopping size software sql text textarea unicode web website windowsxp wysiwyg \n





