You did not load Jquery UI in your fiddle. It works fine.
Just turn on JQuery Ui. You can try enabling it in JSfiddle, on the right top corner and see that your code works.
your code is working good kindly include plugin script after the jquery plugin.. it will sureky work..