Im not exactly sure what're you getting at here but this is what I'd do If I wanted to calculate level points through jquery...
Code: Select all
$(document).ready(function (){
points = $('#levelsum').val();
totalpoints = (levelsum*10)/5;
$("#totalpoints").val(totalpoints);
});
You need to do the calculation and then set the value of the input fields... using the .val() method... the $('#totalpoints') refers to <input type='text' id='totalpoints'> or if you want it as a span you could do this.. <span id='totalpoints'></span> and then replace the last line of code above with $('#totalpoints').text(totalpoints);
If this is what you mean?
PHP/Python (amongst other things) Person - Big Fan of MVC Architecture. Love CakePHP and CodeIgniter.