0

I have an input box , i want that when i click or focus on that , a rupee icon should already be there .currently when i click it shows the code as text . please help ....

$("input.amt").focus(function(){
    var rs = "₹";
    $(this).val(rs);
  });
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<input type='text' readonly name='amount' class='amt' value='' />
Ankit Jain
  • 115
  • 1
  • 9

0 Answers0