How to create simple range slider in ASP.NET MVC 3?

前端 未结 3 1039
日久生厌
日久生厌 2021-01-06 14:38

How to create simple range slider in ASP.NET MVC 3 without using external libraries such as telerik or any other?

3条回答
  •  广开言路
    2021-01-06 15:29

    MVC uses javascript to perform dynamic operations at the client side. Creating a slider using images and javascript will take much time and extensive research which some opensource libs have already done.

    Jquery and Jqueryui is one such lib which is open source and *Microsoft also includes these libs whenever you create a MVC project in scripts folder. Check the scripts folder in your MVC project and you can see something like jquery-ui-1.8.11.js (version may vary)

    Slider sample with jqueryui:

    http://jqueryui.com/demos/slider/

提交回复
热议问题