window.onload = function(){
$('.content').bind({click:function(){
var len = $('.main').children().length;
var id1 = $(this).attr('id');
alert("id"+$(this).attr('id'));
var draggable = new webkit_draggable('+id1+',{revert : true });
}});}
in above code if i passed value of id directly then it’s working properly but if I tried for passing value via variable then it’s not working I am not sure about how to pass value of id1 in var draggable. The value should be in couts
if you want pass as quote
or you can use