I want to check one html element exist inside another html element using jquery.Parent element have id 'preview' and child element have id 'draggable'.How check child element present inside parent element?
My code is
if($("#preview").has("#draggable").length)
{
alert( "First element contain" );
}
Any body give any solution for these issue?
idfor child element then you can directly checkif($("#draggable").length > 0)provided thatidmust be unique through out the html document.