M
M
Mesuti2018-02-08 11:22:23
JavaScript
Mesuti, 2018-02-08 11:22:23

Checking a number and applying a class?

Hey!
How to write a condition for checking positive and negative numbers?
And depending on the result, apply the class? Red=negative, Green=positive
Sandbox Jsiddle

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Spirin, 2018-02-08
@Mesuti

https://jsfiddle.net/rockon404/rwecLwty/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question