Explore the community Forums Lectora Tips and tricks jQuery vs Lectora 17 Reply To: jQuery vs Lectora 17

#367789 Score: 2
Profile photo of Tim K
Tim K
Member
contributor
beginner
intermediate
advanced
friend finder
junior moderator
advocate
wise owl
curious george
Group Member
354 pts
@timk

The code from the blog article should work (as long as you’ve deactivated Seamless Play). If you copied the code directly from the blog to Lectora, you should be aware that you have to replace all the fancy quotes (which aren’t quotes) with real quotes:

$("input").click(check_and_limit);

function check_and_limit() {
if ($("input:checked").length == 3) {
$("input:not(:checked)").attr("disabled", true)
} else {
$("input").attr("disabled", false)
}
}
This post has received 2 votes up.