I am working with jquery and attempting to add a class to a table on the selection of that table row.
I was initially using the following code -
$(this)
There's no need to pass a second argument to .addClass() - it will always add the class.
If that's the behaviour you want, that's the right method.