Jump to content

How to create datepicker of jQuery and jQueryUI in Text Areas


Raviraj Sst

Recommended Posts

I tried creating the datepicker using this linkHow to include your own instances of jQuery and jQueryUI in Text Areas | TIBCO Communitybut it is not working properly .i used the below scripts.

 

HTML

 

Date:

 

Javascript :

 

function datePicker_onSelect(selectedDate)

{ $("#dt input").focus()

$("#dt input").blur() }

pickerOptions =

{

showOn: 'button',

buttonImageOnly: true,

buttonImage: 'https://jqueryui.com/resources/demos/datepicker/images/calendar.gif',

minDate: "-24M", maxDate: "+0D",

changeMonth: true,

changeYear: true,

altField:"#dt input",

onSelect:datePicker_onSelect

}

document.getElementById('dtpicker').innerHTML=""

$("#datePicker").datepicker(pickerOptions);

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...