JHTML::calendar(date('Y-m-d'),'assigned_to', 'th_assigned_to', '%Y-%m-%d')
How to write a jQuery function to get the value in assigned_to on change of the value in calendar.
JHTML::calendar(date('Y-m-d'),'assigned_to', 'th_assigned_to', '%Y-%m-%d')
How to write a jQuery function to get the value in assigned_to on change of the value in calendar.
Hard to judge without knowing how the HTML is rendered. I had a quick glance at your code, I'd imagine something like below might do the trick.
$(document).ready(function(){
$('#th_assigned_to').change(function(){
var value = $("#assigned_to").val();
alert(value);
});
});