function - How to replace numbers in a class to some chars in jquery? -


i want create function replace english digits exist in class named i.e. ".fadigits" farsi digits jquery. example:

1 ۱ 2 ۲ 3 ۳ 4 ۴ 5 ۵ 6 ۶ 7 ۷ 8 ۸ 9 ۹ 0 ۰ 

so can set script change numbers.

<script>     $(document).ready(function(){         $('.fadigits').persiannumbers();         }); </script> 

any help? thank you.


Comments

Popular posts from this blog

python - Error: Unresolved reference 'selenium' What is the reason? -

How do I compare strings in Java? -

ios - Pass NSDictionary from Javascript to Objective-c in JavascriptCore -