I want to do some operations after clicking on a line except td with class = 'someClass'
$('#mainTable tr td:not([class=someClass])').unbind().live('click',function () { //some operation });
what's wrong?
note : this td is not the last td in the table.
Have you studied using hasClass ?
If you leave the click event binding, then when checking the td click event
$(this).hasClass("SomeClass");
The article probably explains how to use it better than I could
Maybe I missed something, but I canβt just ...
$('#mainTable tr td').not('.someClass').click(function(){ //some operation });
Source: https://habr.com/ru/post/1310686/More articles:Kohana 3 ORM: How to get data from a pivot table? and all other tables on this subject - phpThe power of memcached to write to all servers in a pool - phpHow to use LINQ with MySQL? - c #AVAudioRecorder normalizes volume - iphoneMember [class] does not support SQL translation - c #Forward event from a custom subclass of UIControl - eventsCan DBRefs contain additional fields? - pythonStructureMap for Silverlight - silverlightOracle function always returns null - functionImplicit vs explicit getters / seters in AS3 which to use and why? - coding-styleAll Articles