![]() |
|
|
#1
|
|||
|
|||
|
adding vars not text strings
How can I get my function to recognize this...
subt = document.getElementById('subT').innerHTML; ...as a numeric value rather than a text string? My math... ty = 23; subt = document.getElementById('subT').innerHTML; cost = ty+subt; document.getElementById('subT').innerHTML = cost; ...does not work. It rewrites 'subT' as a text string, rather than a computed value. thanks! |
|
#2
|
|||
|
|||
![]() |
| Bookmarks |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Anchor Text - combo image/text link | hasm | Search Engine Optimization | 2 | Jan 30th 2008 10:46 pm |
| Spider Identification Strings for vBulletin | Dominic | vBulletin | 5 | Apr 28th 2006 3:28 pm |
| Search Engines and Query Strings | Trance-formation | Search Engine Optimization | 4 | Jun 13th 2005 6:14 am |
| no rankings for urls with query strings | tphyahoo | Keyword Tracker | 1 | Mar 29th 2004 8:08 am |