2
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.

mozami
  • 7,391
  • 4
  • 21
  • 20
Sara
  • 14,098
  • 13
  • 34
  • 50
  • Provide the HTML generated on the frontend so that one can create a jQuery function for it. – mozami Feb 08 '12 at 14:24
  • 1
    @mozami But how? I don't know. can you give me some help. `$('#th_assigned_to').change(function(){ alert("Done!.");});` I tried some thing like that but didn't work. – Sara Feb 09 '12 at 05:21

1 Answers1

0

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);   
        });
});
Dev
  • 781
  • 9
  • 29