Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
0 Points
9 Posts
May 05, 2012 02:55 PM|LINK
Hi,
The problem ----------------
I have a list of items that are always the same Like:
Basketball Football Golf Hocky
And i have created a list with jQuery UI sortable that works just fine: http://jqueryui.com/demos/sortable/
Now i have to save the order of those items in database fields Like:
public string pos1 { get; set; } public string pos2 { get; set; } public string pos3 { get; set; } public string pos4 { get; set; }
So basketball will go in pos1, football will go in pos2,...
How do i do this?
List:
<ul id="sortable"> <li>Basketball<input type="checkbox" value="1" /></li> <li>Football<input type="checkbox" value="1" /></li> <li>golf<input type="checkbox" value="1" /></li> <li>others<input type="checkbox" value="1" /></li> </ul>
mathias BE
0 Points
9 Posts
Mvc Jquery Sortable, save order to table
May 05, 2012 02:55 PM|LINK
Hi,
The problem
----------------
I have a list of items that are always the same Like:
Basketball
Football
Golf
Hocky
And i have created a list with jQuery UI sortable that works just fine: http://jqueryui.com/demos/sortable/
Now i have to save the order of those items in database fields Like:
public string pos1 { get; set; }
public string pos2 { get; set; }
public string pos3 { get; set; }
public string pos4 { get; set; }
So basketball will go in pos1, football will go in pos2,...
How do i do this?
List: