jQuery Disble单击分钟单元格 [英] jquery disble click on minute cell

查看:196
本文介绍了jQuery Disble单击分钟单元格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有html表,一个文本框和一个按钮.通过拖动单元格进行单元格选择.单击按钮时,我将获取文本框的值并将其放入单元格的span标签.我必须取消点击分钟单元格0、15、30、45.在小提琴中,您看到当我单击分钟单元格时,它使css绿色并且css长度增加了(警报中那些令人窒息的东西).
请参阅jsfiddle ^

i have html table and one textbox and one button.make cell selection by dragging on cell .on click of button i am getting value of textbox and put into span tag of cell. i have to disble click on minute cell 0,15,30,45. In fiddle u see when i click on minute cell then it makes css green and css length is incremented (those chking in alert).
see jsfiddle^

推荐答案

对于禁用点击事件,只需使用click.off();方法

谢谢Nikhil
for disable click event just use the click.off(); method

Thanks Nikhil


这篇关于jQuery Disble单击分钟单元格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆