Jquery & Mobile
[Jquery] - Multiple Select Box 박스간 데이터 전송법
Vivara
2012. 1. 13. 12:09
반응형
<select id="org_select">
<option>전송될데이터</option>
</select>
<select id="org_select">
</select>
<input type="button" onclick="addSelect();" value="전송" />
<input type="button" onclick="removeSelect();" value="삭제" />
function addSlect()
<option>전송될데이터</option>
</select>
<select id="org_select">
</select>
<input type="button" onclick="addSelect();" value="전송" />
<input type="button" onclick="removeSelect();" value="삭제" />
function addSlect()
{
return !$('#org_select option:selected').remove().appendTo('#new_select');
}
function removeSelect()
{
return !$('#new_select option:selected').remove().appendTo('#org_select');
}
반응형