jQuery Datepicker in WPAlchemy

Home Forums WPAlchemy jQuery Datepicker in WPAlchemy

This topic contains 1 reply, has 2 voices, and was last updated by  sjjs1985 2 years, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2542

    rspilhaus
    Participant

    Hello – is there a way to integrate the jQuery Datepicker into the WPAlchemy box? I’ve searched and can’t find anything definitive.

    Thanks!

    #2551

    sjjs1985
    Participant

    here is a basic example:

     

    <label>Date</label>

    <link rel=”stylesheet” href=”http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css” />

    <script src=”http://code.jquery.com/jquery-1.9.1.js”></script>

    <script src=”http://code.jquery.com/ui/1.10.2/jquery-ui.js”></script>

    <script>

    $(function() {

    $( “#datepicker” ).datepicker();

    });

    </script>

    <p><?php $mb->the_field(‘_fulldate’); ?>

    <input type=”text” id=”datepicker” name=”<?php $mb->the_name(); ?>” value=”<?php $mb->the_value(); ?>”/></p>

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.