How to interchanging the option element in Multiple select using javascript -


(move or down option element) how interchanging option element in multiple select using javascript ex. mail id first name last name user type city letter
display mail id first name last name user type city

i want change option mail id last name first name user type city

how can interchanging options using javascript

the easiest way (but least optimized) all, rearrange (send id or number or function) , recreate element.

the optimized version use insertbefore(element, document.getelementbyid("elementcontainer").child), child child before want insert.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -