0

I don't know how to use any mask money outside of the input.

 $(function() {
  $('.currency').maskMoney().focus();
 });

Works

<input type="text" name="amount" class="currency" value="1000000" />

Not Works

<span class="currency">5000000</span>
Sionnach733
  • 4,686
  • 4
  • 36
  • 51
Pablo
  • 1,953
  • 4
  • 28
  • 57
  • 3
    Assuming [this project](https://github.com/plentz/jquery-maskmoney) it says *Just a simple way to create masks to your currency form fields with jQuery* - it explicitly says form fields. If you want to format money in javascript in general - http://stackoverflow.com/questions/149055/how-can-i-format-numbers-as-money-in-javascript – CodingIntrigue Feb 14 '14 at 13:41
  • span isn't an input element, so there's nothing to mask. – j bee Feb 14 '14 at 13:42
  • Yeh, right! But is there any other way? Is there any mask for any tags? – Pablo Feb 14 '14 at 13:43

0 Answers0