Hi Guys,
Can't seem to get my head around this one. I need to send a bunch of variables to php so that i can store the values in a database, but i just can't figure out a way to do that. Pls help. here's a little code
$( "#droppable2" ).droppable({
activeClass: "ui-state-hover",
hoverClass: "ui-state-active",
accept: "#draggable3",
drop: function( event, ui ) {
var jdc = $(this).attr("id"); //I need to post this variable
$( this )
.addClass( "ui-state-highlight" )
var x = ui.helper.clone();
x.appendTo('body');
var jdi = $("img").attr("id");//I need to post this variable
$(this).droppable( 'disable' );
x.append("<span>x</span>")
$("span").click(function (){
$("#droppable2").droppable('enable');
x.remove();
})
}
});
I can post more code if needed. I really need this.
Thanks in advance