views:

47

answers:

2

Hey my webpage is having a checkbox where students have to select the modules they wish to select. Is it possible that I can update the total module credits selected live on the webpage when the student clicks on a checkbox? Or when the student clicks submit can I show a message like please select 60 credits?

+2  A: 

Create a javascript function that reads the checkboxes and displays the total. Then set the onclick event of each checkbox to call that method.

ck
A: 

Check out the jQuery Calculation plugin. It does exactly what you need.

David Hanak