Hi.

How I can check this? I have next part of code where I must check is
element "tag" = droppable.

Instead code after "// pseudo:" i must add some function that check if
element is droppable. If true it must write some text in that element
(For example: $(tag).text('bla bla') )

////////// code /////////////
function help(){
                        // array generated by PHP:
                        <?=$correct?>
                        // random num. from upper array:
                        var rand = Math.floor( Math.random() * cor.length );
                        // Set tag
                        if(rand != 0){
                                var tag = '#p'+rand;
                        }
                    // here goes code that check if "tag" is
droppable...
                   /// pseudo:
                   if(tag is droppable){
                            alert('is dropable');
                   }
}
//////// CODE /////////////

Reply via email to