![]() |
JQuery drag & drop issue
Hello,
I've setup a drag and drop script ( http://jqueryui.com/sortable/#portlets ) to set the order of images displayed on a page. the issue is that after I finish moving the items to the order I want them in, any items that were moved loose they're input values when I submit the changes. for example; PHP Code:
any ideas? |
we might need to see you entire code, or at least the relevant bits
|
this is the drag & drop script;
PHP Code:
PHP Code:
PHP Code:
|
this is all of the javascript;
PHP Code:
|
Code:
$(function() {All ids must be unique on the page - you appear to be giving the 3-4 elements the same id. And your code indicates you have an unclosed div. |
thats not correct. firstly I don't need "$(function()", nested in a javascript function is fine, I don't need it to load on page load. I could use ".click()" if I wanted, but the current function will do fine. second duplicate ids are fine for my purposes and do not effect the PHP form collection. lastly, the closing div tag is just not in the snippet.
|
Quote:
|
Quote:
|
Quote:
|
| All times are GMT +1. The time now is 10:23 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.