Print Page | Close Window

need help with some .js

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Web Design Discussion
Forum Description: Discussion on web design and development subjects.
URL: https://forums.webwiz.net/forum_posts.asp?TID=12666
Printed Date: 29 March 2026 at 2:58pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: need help with some .js
Posted By: dj air
Subject: need help with some .js
Date Posted: 23 November 2004 at 3:11pm
hi guys .
im working on a application form which is partly a calculator, depending on what you press changes the price (on screen through a DIV)

but i seem to be getting 12.100 as a price any ideas what i can do to make it only 4 numbers + the .

is there a trim function in js?

--- edit----

the actual number 12.10 is ok but its the extra 0



Replies:
Posted By: dj air
Date Posted: 23 November 2004 at 3:58pm
no worries found it.
i used


if (Monthly.length >5) {


    Monthly = Monthly.substring(0,Monthly.length-1);
}




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net