Jquery calculation question
Posted: Sun May 15, 2011 10:44 am
Hey guys,
Had something bugging me for ages. I'm pretty newbie to jquery, so I was wondering if you guys might have an ideas. First the code:
I'm trying to add a calculation directly onto the levelsum input (i.e. levelsum*10/0.5), then output it into #totalpoints. Any ideas out there? :/
Had something bugging me for ages. I'm pretty newbie to jquery, so I was wondering if you guys might have an ideas. First the code:
Code: Select all
<script type="text/javascript">
$(document).ready(
function (){
// automatically allocates level points
$("input[id^=levelsum]").sum("keyup", "#totalpoints");
}
);
</script>