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

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -