JQuery sortables?

Define the faq: ... ... (...) .. Make faq sortable: Form submitted: ... Add sorted sequence to form When form is submitted, field "faqs" will contain comma separated id's from #faq like this: q1,q3,q10,q11,q2,q100... Just parse it and save to DB.

1 To anyone who's a newbie like me, don't forget to put your Jquery code in a function ie $(function() { //your code }); This might be wrong / obvious, but I couldnt get the above to work until I did it. – Rob Y Feb 24 '09 at 13:02.

Here is simple example of Jquery UI Sortable,how it can be used with div's. First include libraries in your html: ` ``` Html for making sortable: 1 First Item 2 Second Item 3 Third Item 4 Fourth Item 5 Fifth Item Here is the sortable function: $(document). Ready(function() { $('#target').

Sortable({ items:'div. Entity', //the div which we want to make sortable scroll:true, //If set to true, the page //scrolls when coming to an edge. Update:function(event,ui){ renumber(); } //This event is triggered when the user //stopped sorting and the DOM position has changed.

}); }); renuber() is called from the Sortable update event handler callback: function renumber() { $('. Digit span'). Each(function(index,element) { $(element).

Html(index+1); }); }.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions