insert every element into new line
Hi to all,
Any idea on how to insert every new element into new line? (ATM it starts in a line and then it fills the whole line with elements, and i want to put 1 per line
The element is select list:
<select id="end" >
<option.......>...</>
</select>
The button used to add new object:
<input type="button" id="add" value="Add"/>
This is the jquery part:
<script type="text/javascript">
$(document).ready(function(){
$("#add").click(function(){
var newselect = $("#end").clone();
$(newselect).attr("id","via");
$(newselect).appendTo($("#destinations"));
});
});
document.getElementById("add").onclick = function(){
}
</script>