html - Add Rupee symbol in the text box -
how can add indian rupee symbol inside text box field , not use rs.
amount: <input name="amount" type="text" size="20" value="rs. 1.00">
in need show "rs." in terms of symbol, how use "$".
according me shouldn't this, whether saving value in database, or using calculate or else, store integer, , concatenate rs.
or rupee sign integer. way won't trouble while calculating or storing values.
as far rupee symbol goes, can use ₹
demo 2 (recommended)
even better solution
i've made demo scratch uses background-image
, way, text
field indicate value rupee, also, cross browser.
demo 2 (using background-size
make image tiny)
input[type=text].rupee { background-image: url(http://i.imgur.com/fd7nrox.png); border: 1px solid #aaa; padding: 5px; padding-left: 20px; /* indent text values inside textbox */ background-size: 20px 25px; /* change symbol size */ background-repeat: no-repeat; /* rupee image doesn't repeat */ }
Comments
Post a Comment