Extended form checkbox ticked?
Permalink 1 user found helpful
Hi All,
I am using the Extended form add-on and wondered if there was a way to make a checkbox ticked by default?
Many Thanks
Steve
I am using the Extended form add-on and wondered if there was a way to make a checkbox ticked by default?
Many Thanks
Steve
Moongrab,
works like a charm :)
Thanks
Steve
works like a charm :)
Thanks
Steve
For anyone whom needs to do this with the standard C5 Form Block you can use the following code:
<script type="text/javascript">
$(function(){
$('input[name="YOURINPUTNAME"]').attr('checked', 'checked');
});
</script>
As the ID attribute is not used in the checkbox input tag.
<script type="text/javascript">
$(function(){
$('input[name="YOURINPUTNAME"]').attr('checked', 'checked');
});
</script>
As the ID attribute is not used in the checkbox input tag.
Place the following code on the page where your checkbox is: