I had this old jQuery UI slider that had worked just fine a few months ago, but now I seem to be getting an exception reading: Cannot call method \'addClass\' of undefined.
jQuery UI Slider plugin min & max options accepts only number. So according to your requirement parse them to integer or float.
For details visit link- http://api.jqueryui.com/slider/