Hey Lawrence and Patrick, sorry for the massive delay in replying.
There’s no specific effect for disabling/graying out a button. Playing with the disabled
attribute is certainly necessary, and if you want a custom L&F across browsers, you’ll need to add some class to it when it’s disabled and use a custom CSS rule for it.
As for your Sortable
issue, I see a number of issues with your code, and it certainly b0rks for me on whatever browser I test.
The main issue is, you should use the same container ID on your create
call and you serialize
call, otherwise you won’t get anything (you’ll get Sortable.serialize
to raise an error, actually).
Also, you could simplify your call and avoid double-encoding by just passing the result of the serialize
call as your parameters
option, as serialize
returns a propery query string (named after your list’s id=
attribute, unless you passed it an overridding option for the parameter base name.
‘HTH