javascript - Determine whether the target of a selector has been formatted as a slider -


i've tried looking @ other questions none seem work because they're testing whether selected object html element rather jquery-ui object. in short, i'm looking following:

var slider = $("#slider").slider(); if(slider.????) // return true because jquery created slider     alert("it's slider!"); else     alert("not slider."); 

i'm idiot.

slider.hasclass('ui-slider'); 

should it.


Comments

Popular posts from this blog

css - I want to align grid in center -

Contact Form PHP Email Script -

python - SWIG function not printing output -