I have looked at it, stared at it and sworn at it.................. In truth I don't understand Java. Can anyone alble to help me get it working again.
Thanks
<script type="text/javascript">
$(document).ready(function()
{
$('#btnSubmit').click(function()
{
var totalChecked = $('[name="chkChoice"][checked="true"]').length;
if (totalChecked <= 7)
ShowResults(1);
if (totalChecked >= 8 && totalChecked <= 14)
ShowResults(2);
if (totalChecked >= 15 && totalChecked <= 21)
ShowResults(3);
if (totalChecked >= 22)
ShowResults(4);
});
function ShowResults(resultPanelNumber)
{
$('#questionPanel').hide();
$(document).scrollTop(220);
$('#result_' + resultPanelNumber).show();
}
});
</script>
This post has been edited by smohd: 31 January 2012 - 03:58 AM
Reason for edit:: Code tags added. Please use [code] tags when posting codes

New Topic/Question
Reply


MultiQuote




|