5

I have the following:

$('#widgets ul').sortable(
{
  connectWith: ['#widgets ul'],
  opacity: 0.7,
  start: function(e, ui) {
    fromWidgetPosition = ui.item.prevAll().length + 1;
    fromRowId = ui.element.attr('id');

I just upgraded jQuery from 1.2.6 to 1.3.2, and I also upgraded the jQuery UI library to the latest version.

Nick Craver
  • 623,446
  • 136
  • 1,297
  • 1,155
Chad Johnson
  • 21,215
  • 34
  • 109
  • 207

1 Answers1

4

The 'element' got removed in newer jQuery UI versions, see this bug report and the corresponding source changeset.

According to those, you should use $(this) instead:

fromRowId = $(this).attr('id');
Henrik Opel
  • 19,341
  • 1
  • 48
  • 64