Select Input Value in Javascript Template

Permalink
Any ideas on how I would write a form select input in a Javascript template? I am modifying the photo rotator block and want each photo the user adds to also have an attribute available. Something like..
<div class="form-group">
         <select name="color[]">
         <?php if ( is_object($ak)) {
            foreach($options as $option){ 
               $curOption = $row['color']; ?>// tried putting <%=color%> in here
                 <option value="<?=$option?>"<?php if ($option ==$curOption ) { print 'selected="selected"'; } ?>><?=$option?></option>';
            <?php }
           }
         ?>
         </select>
      </div>

 
Chrouglas replied on at Permalink Reply
Got it working...
<div class="form-group">
         <select name="color[]">
         <?php if ( is_object($ak)) { 
            foreach($options as $option){ ?>
               <option value="<?=$option?>" <% if (color == '<?=$option?>' ) { %> selected="selected"<% } %>><?=$option?></option>
            <?php } ?>
         <?php } ?>
         </select>
      </div>