Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I am using Joomla 3.9.2 and I have an form xml on several pages which includes, among others, a calender form field type. On one of those pages I want to attach an event lister for change event for that calendar field.

I have tried:

let refDateJElm = jQuery("#ref_date");
refDateJElm.change(function(e) {alert('ok')});

not working. I have also tried:

let refDateJElm = jQuery("#ref_date");
refDateJElm.on("select", function(e) {alert('ok1')});

not working either. I have also tried:

let refDateJElm = jQuery("#ref_date");
refDateJElm.on("change", function(e) {alert('ok1')});

It is not working either. So can someone help me attach an event on the standard form field calendar ?

Thanks in advance.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
400 views
Welcome To Ask or Share your Answers For Others

1 Answer

等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...