Reply
converting innerText to number
Old 05-28-2005, 06:56 AM converting innerText to number
numbenator's Avatar
Ultra Talker

Posts: 411
Location: London
Hi All,

How do i convert

document.getElementById("div1").innerText

into a number.

cheers

Steve
__________________
www.mastech-solutions.com
numbenator is offline
Reply With Quote
View Public Profile Visit numbenator's homepage!
 
When You Register, These Ads Go Away!
     
Old 05-28-2005, 07:17 AM
chrishirst's Avatar
Super Moderator

Posts: 12,819
Location: Blackpool. UK
parseInt() or parseFloat()
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-28-2005, 09:05 AM
numbenator's Avatar
Ultra Talker

Posts: 411
Location: London
cheers chris,
youve helped me out quite a bit last couple of days. It's much appreciated.
Thank you

Not quite as automated as want but the output is now as required
http://www.collagenrx.co.uk/products.asp
__________________
www.mastech-solutions.com

Last edited by numbenator : 05-28-2005 at 09:34 AM.
numbenator is offline
Reply With Quote
View Public Profile Visit numbenator's homepage!
 
Reply     « Reply to converting innerText to number
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.13263 seconds with 13 queries