Change function not working for for fRecurrence

rss

Posted by gleegeld - Mar 28 ’16 at 07:00

Hello,

I am trying to automatically set the end by date when the Recurrence field is checked. But I am stuck at the first step and I cannot get anything to fire when the Recurrence field is checked.

I have tried

fd.field('fRecurrence').change(function () {

alert('here');

});

and I have tried

 

$('input[id^=RecurrenceField]').click(function () {

alert('there');

});

neither seem to trigger the alert.

Can you tell me what I am missing?

  • rostislav
    rostislav
    Moderator
    Member for: 6 years 6 months 24 days
    #1 by rostislav Mar 29 ’16 at 06:25

    Try this:

     fd.field('fRecurrence').control()._el().find('[title="Recurrence"] > input').click(function(){alert(this.checked);})
  • gleegeld
    Member
    Member for: 6 years 4 months 30 days
    #2 by gleegeld Apr 5 ’16 at 05:39

    Works, thanks so much!

Displaying 1 to 2 of 2 messages