how to check if div has id or not?

后端 未结 6 583
one
6条回答
  •  南笙
    南笙 (楼主)
    2021-01-12 12:55

    demo http://jsfiddle.net/QRv6d/13/

    APi link: http://api.jquery.com/prop/

    Please try this, this should help

    code

       $(".ui-droppable").each(function () { 
    
           if($(this).prop("id").length > 0)
           {
           alert('here');
           }
        });​
    

提交回复
热议问题