Saturday, 10 August 2013

How to select 2 class as a droppable?

How to select 2 class as a droppable?

i really need help here. can find solution on how to select
this->class="cell active" as a drappable.you can see my codes here.
i want to use class="cell active" as drappable ->>>>$('???????').drappable();
$('.cell').droppable({
drop: function(event, ui) {
var pieceValue = ui.helper.data('value');
var toBoard = $(this).data('square');
var splitResult = toBoard.split(',')
board[splitResult[0]][splitResult[1]] = pieceValue;
$(this).append(ui.draggable);
}
});
});
http://jsfiddle.net/4KLHs/

No comments:

Post a Comment