mari muthu

mari muthu

  • NA
  • 198
  • 107.2k

Jquery DatePicker on input event is not working...?

Nov 30 2016 4:22 AM
hi friends,
 
 
       i need one help guys.Actually am trying to get the value from datepicker field by using .on("input",function(){}) in this method is not working for me i dont know why.in this mean while i have been using same method to input field there its working perfectly ,only date picker is issue
 
  i have given my code below,
 
$(".jq_calander_date").on("input", function () {
alert("change")
if ($(this).val() == "__/__/____" && ($(this).parent('td').children('.ReqiredField').length > 0)) {
$(this).css('background-color', '#ffffcc');
}
else {
$(this).css('background-color', '#ffffff');
}
});
 
 
html
-------
 
 
<input name="Expiration" tabindex="3" class="jq_calander_date ReqValidate carryMetaData hasDatepicker removeclearicon" id="Expiration" style="background-color: #ffffff;" type="text" value="11/30/2016">
 
 
 
thanks, 

Answers (4)