How to count click about dblclick and do something after 4 clicks in jQuery?
问题 To let doSetTag function take effect, before that and the first clicking(doule click, 2 clicks), some html elements will be highlight displayed, when user click button again(the second double-click, 4 clicks), then doSetTag(tagid); takes effect. Below colde takes effect at once double-click(2 clicks), so I would like to count the dbclick and let doSetTag(tagId) works after the second double-click(4 clicks). $('#tagLabels .minitag-label').attr('title','Double-Click to cancel the tag').unbind()