JavaScript
<script language="javascript" src="js/jquery-1.5.2.min.js"></script>
<script language="javascript" >
function ShowSelect() {
$("select#Label option:selected'").each(function(){
$("#selectedItem").append(this);
});
}
</script>
HTML:
<select name="Label" size="15" multiple="multiple" id="Label">
<option value="1">1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
</select>
<input type="button" name="select" value="select" onClick="ShowSelect();" >
<select name="selectedItem" id="selectedItem" size="15" multiple="multiple">
</select>
留言