Drag and Drop Team Selection
- by davidjwest
I have a Fantasy F1 Website, currently users select their teams using dropdown menus. It works OK but isn't as user friendly as I would like.
I would like to implement a drag and drop type of system, there's jQuery code out there that would go part of the way to allowing me to do this:
http://jqueryui.com/demos/draggable/
But I am not sure about how to integrate that into PHP and MySQL, my jQuery skills are limited!
I'd also need to stop them spending more than a certain amount of money, each driver has a value and the teams can only spend a certain amount of money.
There's also limits for example you can only pick a driver once, but you can have three different drivers.
Finally, how would you decide that the user had picked their team, I don't want a submit button as that kind of defeats the object of the exercise!
Thanks for any advice, I don't expect anyone to write the code for me but some pointers would be greatly appreciated.