Thread:Jens Ingels/@comment-24416108-20141128155015/@comment-3271569-20141130233926

Alright than it will be relative easy to code the upgrades.

How you refer to the code entirely depends what are you planning to use it for and how the data will progress in the future. I didn't id the span tags because their was no reason for. It where the only 3 span tags in that templates before select-rank & select-upgrade was implemented. Now more span tags are needed refering to a class would indeed be intressting.

Is indeed the way to go to refer to the content.

Their is a error in your first code. The reason why it bugs is because the number change into a strong and gives a error with the hooks.

A question why didn't you keep? I believe I test that function and I didn't found any calculation mistakes. Or is their one?

I wouldn't use the int function. Actualy why do you need to call the function anyway if whe can use jQuery for it.

Here's a improved css version. Since whe probaly wouldn't use another select in the template whe could call it that way:

If your not planning to add more label tags. You can actualy do the css like this:

Ok let's continue the code:

Where almost done with the basic code. The functions are finished. Now the only thing that's missing is the onchange function when you change the select value.

-

The select tag is hard coded. Why do you think it requires to many code to change it.

It's late here. I will see if I have time tommorrow to help you with the last part. The formule should work fine. You can bugtest it in the console. Let me known if their are bugs.