How do i Convert a Select to a Checkbox

Posted by streetparade on Stack Overflow See other posts from Stack Overflow or by streetparade
Published on 2010-03-17T11:59:36Z Indexed on 2010/03/17 12:01 UTC
Read the original article Hit count: 144

Filed under:
|
|
|
|

That sounds pretty odd but i have this cod and i need to convert it to checkbox, with the same functionalities

 <select onchange="document.getElementById('reasonDiv{$test->id}').style.display = '';
  document.getElementById('reason{$test->id}').value = this.value;" name='reasonId{$test->id}' id='reasonId{$test->id}'>
  <option value=''>Test</option>
  {foreach item=test from=$testtmp.6}
      <input type="checkbox" value='{include file='testen.tpl'
     blog=$test1 member=$test2 contents=$test->contents replyId=$test->predefinedreplyid }' label='{$test->predefinedreplyid}'
     {if $test->predefinedreplyid==$test1->declineId}selected="selected"{/if}>{$test->subject}</option>
  {/foreach}
 </select>

How can i do that? Thanks for help

© Stack Overflow or respective owner

Related posts about smarty

Related posts about php