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 &#x20b9;

demo

demo 2 (recommended)


even better solution

i've made demo scratch uses background-image, way, text field indicate value rupee, also, cross browser.

demo

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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -