Sunday, 15 July 2012

jQuery pseudo select throws exception -



jQuery pseudo select throws exception -

i'm pretty new jquery .. have piece of code (which works) shown below ..

var tablestohide = $('.master-list-panel:visible'); if (tablestohide.length > 0) tablestohide.hide();

but whilst debugging else (which doesn't work) notice above seems throwing exception ..

failed execute 'queryselectorall' on 'document': '.master-list-panel:visible' not valid selector.

can tell me why ? .. works, still logs exception ..

thanks

it's not bug according jquery:

resolution set notabug

don't break on caught exceptions. caught because expected it.

lesson of day: don't break on caught exceptions :). turn on in visual studio c# development , number of thrown caught exceptions in framework dlls frightening.

jquery jquery-selectors

No comments:

Post a Comment