Monday, July 30, 2012

javascript – Allow user to order a list of selections?



I think what I want to do is pretty straightforward, but it isn\’t for me (a newbie).


I have a list of, say, 10 services a client can purchase. I\’d like the client to be able to order this list of services based on which he\’d like to do first, second, third, etc.


I\’m envisioning a dropdown box or checkboxes that first shows all 10 options, then eliminates the first option after the user picks one and so on.


Ideally, I\’d like to have the services the user selected display in order below the dropdown (or elsewhere on the page) perhaps with additional details on the service, so he can see the order he chose at the end. It would essentially be a custom list of service implementation for that person.


I\’d prefer to do this all with javascript/jquery and HTML (and CSS). Any simple ways to do this?


Thanks in advance!


EDIT

Just an example of what I might want to do to make it more clear.



<select name=\"products\" size=\"6\">
<option selected>Select A Starting Product</option>
<option value=\"1\">Car Wash</option>
<option value=\"2\">Wax</option>
<option value=\"3\">vacuum</option>
<option value=\"4\">polish</option>
<option value=\"5\">drying</option>
</select>


Based on which items the person picks from the box and in what order, a list would populate below the box with items selected in the correct order they were selected. Open to doing this with checkboxes as well.


Thanks.






Rating: 4 out of 5 based on 4 ratings



The post javascript – Allow user to order a list of selections? appeared first on Javascript ASK.






via Javascript ASK http://javascriptask.phpfogapp.com/javascript-allow-user-to-order-a-list-of-selections.html

No comments:

Post a Comment