user2551119
user2551119

Reputation: 3

On click with multiple events

<input type="checkbox" id="CB6" name="" value=""  onclick="return KeepCount2(); ShowReg(6)">

It doesn't seem to work for me can someone correct this please =)

It does the keepcount but doesn't do the showreg.

Thanks

Upvotes: 0

Views: 135

Answers (2)

Yogesh
Yogesh

Reputation: 924

onclick="KeepCount2(); ShowReg(6)"

Upvotes: 0

saamorim
saamorim

Reputation: 3905

The ShowReg(6) isn't called because you've got the return just be KeepCount2(), thus the flow stops there. Check to see if you don't what to write instead:

 onclick="KeepCount2(); return ShowReg(6);"

Upvotes: 2

Related Questions