在日历弹出窗口上捕获点击事件 [英] capture click event on calender popup
问题描述
我有calander图像,点击哪个div是弹出窗口,有桌子。
i想检查用户是否选择了日期。
我试过以下,但它没有工作
$('。ajax__calendar_days> table> tbody')。find(' tr')。each(function(){
$(this).find('td')。click(function(){
alert('hi');
});
});
我可能知道我哪里出错了
或者是否有任何其他方法来检查文本框中的文本(保存日期)已使用jquery更改。
即使我尝试了以下这个,但是没有工作
$('#Tbl_Selection')。find('tr')。each(function(){
$(this).find('input')。change( function(){
$('#ctl00_cphPage_btnExpExcel')。prop('disabled',true);
$('#ctl00_cphPage_hdExpExcel')。val('1');
});
});
任何帮助??
提前感谢
('。ajax__calendar_days>表> tbody')。find('tr')。each(function(){
(this).find('td')。click(function(){
alert ('hi');
});
});
我可能知道我在哪里出错了
或者是否还有其他方法可以检查文本框中的文本(保存日期)已经使用jquery进行了更改。
甚至我试过这个,但没有工作
('#Tbl_Selection')。find('tr')。 (函数(){
i have calander image, on click of which div is popup which has table.
i want to check user has selected date or not.
I tried following, but its not working
$('.ajax__calendar_days > table > tbody').find('tr').each(function(){ $(this).find('td').click(function(){ alert('hi'); }); });
may i know where i'm going wrong
or is there any other way to check the text in the textbox(that holds date) has changed using jquery.
even i tried for this following, but was not working
$('#Tbl_Selection').find('tr').each(function(){ $(this).find('input').change(function(){ $('#ctl00_cphPage_btnExpExcel').prop('disabled', true); $('#ctl00_cphPage_hdExpExcel').val('1'); }); });
Any help??
thanks in advance
('.ajax__calendar_days > table > tbody').find('tr').each(function(){
(this).find('td').click(function(){ alert('hi'); }); });
may i know where i'm going wrong
or is there any other way to check the text in the textbox(that holds date) has changed using jquery.
even i tried for this following, but was not working
('#Tbl_Selection').find('tr').each(function(){
这篇关于在日历弹出窗口上捕获点击事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!