点击事件后如何引发jquery unlick事件 [英] How to raise jquery unclick event after click event
问题描述
每当我在文本框中设置必需属性时点击复选框,但是如果不点击复选框怎样才能删除所需属性这就是为什么如何在点击事件后引发jquery unlick事件
$(' 。schedule-check') .click(function(){
debugger;
$(' #Schedule_StartDate _' + ScheduleCount + ' ')。attr(' required', true ) // 设置所需
$(' #Schedule_EndDate _' + ScheduleCount + ' ')。attr (' required', true )< span class =code-comment> // 设置所需
});
请帮帮我。
谢谢你
我尝试过:
每当我在文本框中设置必需属性时单击复选框但是如何在取消选中时删除所需属性复选框这就是为什么如何提高单击事件后的jquery unlick事件
(' 。 schedule-check')。click(function(){
debugger;
(' < span class =code-string>#Schedule_StartDate _' + ScheduleCount + ' ') .attr(' < span class =code-string> required', true ) // 设置必需
(' #Schedule_EndDate _' + ScheduleCount + ' ')。attr( required', true ) // 设置所需
});
请帮帮我。
谢谢你
我尝试了什么:
每当我在文本框中设置必需属性时单击复选框但是如何在取消单击复选框时如何删除所需属性这就是为什么如何在单击后引发jquery unlick事件事件
whenever click check box at the time i had set required attribute to textbox but how can can remove required attribute whenever unclick check box thats why how to raise jquery unclick event after click event
$('.schedule-check').click(function () {
debugger;
$('#Schedule_StartDate_' + ScheduleCount + '').attr('required', true) // to set required
$('#Schedule_EndDate_' + ScheduleCount + '').attr('required', true) // to set required
});
Please help me.
thank u
What I have tried:
whenever click check box at the time i had set required attribute to textbox but how can can remove required attribute whenever unclick check box thats why how to raise jquery unclick event after click event
('.schedule-check').click(function () { debugger;
('#Schedule_StartDate_' + ScheduleCount + '').attr('required', true) // to set required
('#Schedule_EndDate_' + ScheduleCount + '').attr('required', true) // to set required });
Please help me.
thank u
What I have tried:
whenever click check box at the time i had set required attribute to textbox but how can can remove required attribute whenever unclick check box thats why how to raise jquery unclick event after click event
这篇关于点击事件后如何引发jquery unlick事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!