canceling onclick event for some cells in the table
Posted: Mon Jun 16, 2008 5:51 am
i have wrote an onclick event for the rows of the table (<tr> tag) but i want to disable the onclick for two columns (<td> tag). what should i do?
by defualt when i enable onclick for a row it will works for all the column in the row.
my row has 12 columns and i don't need onlick for the last twos. one solution is that i repeat the same code for 10 columns instead of the row but it is not a good approach. i think there should be some event arguments like c++ and C# that can reveal which cell has been clicked and if it was a special one then the code can cancel onclick event. i appriciate any help...
by defualt when i enable onclick for a row it will works for all the column in the row.
my row has 12 columns and i don't need onlick for the last twos. one solution is that i repeat the same code for 10 columns instead of the row but it is not a good approach. i think there should be some event arguments like c++ and C# that can reveal which cell has been clicked and if it was a special one then the code can cancel onclick event. i appriciate any help...