Hi Team ,
I just wanted to Disable and enable the Datetime picker TextBox in Jquery?
i have a Simple TextBox , and Another Textbox Which is a DateTime Picker.
if i enter the Value in First TextBox , then only My Second Datetime Picker Textbox Should get Enabled.
i have done , but facing the Issue of Image icon of DateTimePicker also , the Textbox gets disabled but Still on click of image icon , Calender Displays. In the Disabled mode i dont want the image icon to display calender.
Please find below Code Snipplet
in the HTML View
<input type = Textbox value ="Place" id="Textbox1" name="Textbox1"/ >
<input type = Textbox value ="Place" id="TextboxForDate" name="TextboxForDate"/ >
in Javascipt
$(function () {
$("#TextboxForDate").datepicker({
minDate: 0,
showOn: "button",
buttonImage: "../../Content/themes/base/images/calender-icon.png",
buttonImageOnly: true,
buttonText: "Select date",
});
I want in Disabled Mode , the Image Icon Should not Display Calender