Q:

Show div if checkbox is checked onload

I did a bunch of research but seems not to find the correct answer. I am looking to show a div on page load if checkbox is checked where it gets a value from MySQL.
This is my code. 
<input type="checkbox" name="setup" value="Setup" 
{if $single_array[i].SERVICE == 'Setup'} checked{/if}>
&nbsp;&nbsp;<b>Setup</b>

A:

Hey I endup using smarty statements to get this working which also works better 
{if $test[I].column_name == '1'}
<!--Show Info-->
<p> Test Data</p>

{elseif $test[I].column_name == '2'}
<!--Show Info-->
<p> Test Data</p>

{elseif $test[I].column_name == '3'}
<!--Show Info-->
<p> Test Data</p>
{/if}

Thanks all..

