0

I have 2 textbox horizontally. In 1st textbox I have a drop down of lists where I can select multiple list. I have a add button in middle of those two text boxes. If I will click on add button by selecting from that textbox that selected list should appear in second text box. .. how I can do that. Please help me out? ?

2
  • 3
    Place your code. Some code would definitely promote an answer Commented Jul 31, 2015 at 5:02
  • Share your HTML snippet Commented Jul 31, 2015 at 5:06

1 Answer 1

1

From jQuery moving MultiSelect values to another MultiSelect,

$().ready(function() {  
 $('#add').click(function() {  
  return !$('#select1 option:selected').remove().appendTo('#select2');  
 });  
 $('#remove').click(function() {  
  return !$('#select2 option:selected').remove().appendTo('#select1');  
 });  
});
Sign up to request clarification or add additional context in comments.

2 Comments

When you copy someone else's answer, make sure you quote and link to it, otherwise you are basically plagiarizing them.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.