compare two elements with jquery, change class based on result

Jobt

New Member
I am trying to get results from a database, insert that into an \[code\]<li>\[/code\] and highlight the greater of the two values I get from those two HTML \[code\]<li>\[/code\] elements. I have made a jsfiddle but am unsure how to get \[code\]addClass()\[/code\] to change the \[code\]<li>\[/code\] based on the result of comparing the two values.
 
Back
Top