Sanjay Rathod Sanjay Rathod - 7 months ago 16
Javascript Question

How to display a message after drop every elemet?

I want to display a message after drop each element

For that I have written code in jQuery like this -

if($(this).find('ol .placeholder').length > 0)
{
isAllFilled = false;
return
}

if(isAllFilled)
{
alert('All Boxes have elements.');
$("#equal").show();
$("#equal a").html("CONGRATULATION ! YOU HAVE ENTERED APPROPRIATE BLOCKS FOR ACCOUNTING.");
}


Here you can check my code - http://jsfiddle.net/sanjayrathod7/5cZD5/20/

but I think something is wrong with my code

Please look into my code and tell me where I am making mistake.

Please help

Answer

if($(this).find('ol .placeholder2').length > 0) { isAllFilled = false; return }

               });

    if(isAllFilled)
    {
      alert('All Boxes have elements.');
         $("#equal").show();
         $("#equal a").html("CONGRATULATION ! YOU HAVE ENTERED APPROPRIATE BLOCKS FOR ACCOUNTING.");
    }
}