syntax:clearQueue ( [ queueName ] )
return type:void, element
content:ใช้ยกเลิก queue function ทั้งหมด ของทุก element ภายใน set
example:$("div#animate").queue ( "testQueue", [
function ( next ) { $(this).show ( "slow" ); },
function ( next ) { $(this).animate ( { left:"+=200" }, 2000 ); },
function ( next ) { $(this).animate ( { left:"-=200" }, 2000 ); },
function ( next ) { $(this).hide ( "slow" ); }
] );
$("div#animate").clearQueue ( "testQueue" );
var queueDiv = $("div#animate").queue ( "testQueue" );
alert ( "Number of Queue : " + queueDiv.length );