Jump to content

Diferent type of Form Select

Recommended Posts



I don't knowpost-164266-0-15463200-1374021786_thumb.png how create Form Select with the characteristics presented in the image attached. The "Search" is for search the options in the first window, and we choose the options we want pushing the sum symbol button for the other window (right).


How I do?







Link to comment
Share on other sites

This code will might help you:



HTML Code :

<select class='sel' id='left' multiple>
<option value='1'>one</option>
<option value='2'>two</option>
<option value='3'>three</option>
<option value='4'>four</option>
<option value='5'>five</option>
<option value='6'>six</option>
<input type='button' value='>>' onclick='move(0)'>
<input type='button' value='<<' onclick='move(1)'>
<select class='sel' id='right' multiple>

Javascript Code :

<script type="text/javascript">
function move(direction)
	var src = document.getElementById('left' )
	var trg = document.getElementById('right' )	
	var tem
		tem = src
		src = trg
		trg = tem
	var selected = []
	for(var i in src.options)
			trg.options.add(new Option(src.options[i].text, src.options[i].value));
	for(i in selected)
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.