html - Checkboxes within Select list -


how have checkboxes within select list? list generated xquery code, making little more complicated. i'm struggling figure out how use "input" tag here.

{if( $workcount > 1 ) <form name="bentform" action="{$g:blakeroot}archive/comparison.xq" onsubmit="return mysubmit()" target="comparison"> <input name="selection" type="submit" value="compare" onclick="document.bentform.target='bentwin'"/> <br/><br/>   <select name="copies" multiple="multiple" size="3" > <option selected="yes" value="all">all copies , *versions other works*</option> {for $copies in collection($g:collection)/bad[starts-with(@id , $workid)]/@id let $bad := collection($g:collection)/bad[@id = $copies] let $copyversion := string($bad/@copy),    $comporder := $bad[@id = $copies]//compdate[1]/@value,    $printorder :=$bad[@id = $copies]//printdate[1]/@value,    $printdate := $bad[@id = $copies]//printdate[1]/@value,   $repository := $bad//repository/institution/text(),   $repcount := count($repository)  order ($bad//compdate)[1]/@value, ($bad//printdate)[1]/@value, g:copydesignation($copies) return  if ($copies != $copyid) <option value="{$copies}"><striptags>{if(exists($copyversion))then <wrap>{$copyversion}, </wrap>else ""} {string(substring-before( $printdate, '.' ))} ({if($repcount = 1) $repository else <wrap>multiple ({$repcount}) institutions</wrap> })</striptags></option> else if ( $compwith != "" )  <p>if worked, i'd comparing plate {$compwith}</p> else "..." } 

    {if( $workcount > 1 )         <form name="bentform" action="{$g:blakeroot}archive/comparison.xq" onsubmit="return mysubmit()" target="comparison">     <input name="selection" type="submit" value="compare" onclick="document.bentform.target='bentwin'"/>     <br/><br/>       <input type="checkbox" name="copies[]" value="all" id="all" /><label for="all">all copies , *versions other works*</label>     {for $copies in collection($g:collection)/bad[starts-with(@id , $workid)]/@id     let $bad := collection($g:collection)/bad[@id = $copies]     let $copyversion := string($bad/@copy),        $comporder := $bad[@id = $copies]//compdate[1]/@value,        $printorder :=$bad[@id = $copies]//printdate[1]/@value,        $printdate := $bad[@id = $copies]//printdate[1]/@value,       $repository := $bad//repository/institution/text(),       $repcount := count($repository)      order ($bad//compdate)[1]/@value, ($bad//printdate)[1]/@value, g:copydesignation($copies)     return      if ($copies != $copyid)         <input type="checkbox" name="copies[]" value="{$copies}" id="{$copies}" /><label for="{$copies}"><striptags>{if(exists($copyversion))then <wrap>{$copyversion}, </wrap>else ""} {string(substring-before( $printdate, '.' ))} ({if($repcount = 1) $repository else <wrap>multiple ({$repcount}) institutions</wrap> })</striptags></label>     else if ( $compwith != "" )      <p>if worked, i'd comparing plate {$compwith}</p>     else "..."     } 

Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -