Mission: To move a select from one div to another if the first contains an input. $(document).ready(function(){ $("#button").click(function(){ $("input[name=foo]").after($("#picklist")).remove(); }); });
1a.
1b.
2.