c# - How to call a function JQuery -


i'm beginner in jquery (i know nothing framework).

i found code display calendar or hours using jquery , cool.

how can use code?

follow link code i'm trying implement in system (with razor webmatrix)

http://trentrichardson.com/examples/timepicker/

it's matter of including necessary script , style references, wiring components. in particular case:

  1. include jquery engine core script within <head> of page. use recent version available (currently, 1.5). script in sample page uses jquery 1.4.4:

    <script type="text/javascript" src="jquery-1.4.4.min.js"></script>

  2. include jquery ui core script (same here version):

    <script type="text/javascript" src="jquery-ui-1.8.6.custom.min.js"></script>

  3. include plugin script(s):

    <script type="text/javascript" src="jquery-ui-timepicker-addon.js"></script>

  4. don't forget reference plugin ui elements styles:

    <link rel="stylesheet" media="all" type="text/css" href="css/ui-lightness/jquery-ui-1.8.6.custom.css">

  5. wire plugin text box element act calendar trigger. sample uses <input type=text> id example1:

    $('#example1').datetimepicker();

these general steps particular case! jquery offers more functionality, , exploiting may require other setups. example chose starting point: it's useful , easy understand. boa sorte...


Comments

Popular posts from this blog

Javascript line number mapping -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -