dedyandy Posted October 29, 2006 Share Posted October 29, 2006 Hi All,Could anyone help me for how to put the "$" sign in front of a number, but the number still can be calculated using Javascript. In other words, the content of a tag is only the number, but when displayed it puts the "$" sign in front of a number.Thanks,Andy. Link to comment Share on other sites More sharing options...
justsomeguy Posted October 30, 2006 Share Posted October 30, 2006 In Javascript, have it do this:num = "$" + num;before you write it out, or just write the sign when you write the number. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now