Adding characters to string (input field)

Posted by Zaps on Stack Overflow See other posts from Stack Overflow or by Zaps
Published on 2010-06-13T14:44:44Z Indexed on 2010/06/13 14:52 UTC
Read the original article Hit count: 119

Filed under:
|

Hi,

I have a text box where the value the result of a calculation carried out in jQuery. What I would like to do, using jQuery, is to display brackets around the number in the text box if the number is negative.

The number may be used again later so I would then have to remove the brackets so further calculations could be carried out.

Any ideas as to how I could implement this?

Thanks

Zaps

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery