Change comma color of a number in javascript or jquery -


did have trick change color of comma in number :

1,850,358 

withtout addind css class, styles, or html separators :

1<span class="red">,</span>850<span class="red">,</span>358 

i quite out of ideas..

use style?

1<span style="color:red">,</span>850<span style="color:pink">,</span>358 

the better way define angularjs directive or polymer web component turns specified characters color. markup this:

<character-magic char="," color="#fa1122">you notice in text, every comma has specific color. isn't great, no?</character-magic> 

in end, component/directive still inline styling mentioned above style.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -