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

Categories

0 votes
398 views
in Technique[技术] by (71.8m points)

joomla3.0 - Joomla Calendar Field add event

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.


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

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...