开发者

Javascript ContextMenu on a TD

开发者 https://www.devze.com 2022-12-28 23:42 出处:网络
If I attach a context menu to a td, it fires okay for text in the TD, but if I add a div to the TD, the context menu will not fire when right clicking on the div.How can I make the context menu fire w

If I attach a context menu to a td, it fires okay for text in the TD, but if I add a div to the TD, the context menu will not fire when right clicking on the div. How can I make the context menu fire when anything, data or divs, are right clicked in the td?

Edit: The event was popping, but due to an error in my code, I never saw the event popping. Sorry for not posting code earlier, I didn't check back until someone "answered" the question and I received an email. Thanks for all the effort to answer the qu开发者_如何学Goestion. The "right" answer is that the question was flawed.


Have you tried to set div's width and hight to 100%

s


Due to a bug in my code, the question was invalid

0

精彩评论

暂无评论...
验证码 换一张
取 消