How to call a functional in CoffeeScript

How to call a functional in CoffeeScript

darkspd3darkspd3 Posts: 1Questions: 1Answers: 0

I am building this in Ruby on Rails and I simply wish to call a function to get all the filtered nodes in my table. I am calling:
$("#selectAllLocations").click ->
filtered = $("#restaurantLocations").dataTable().fnGetFilteredNodes()
filtered.$("tr").addClass "Selected"

But in the chrome console the error is noted as: Uncaught TypeError Undefined is not a function on line $("#restaurantLocations").dataTable().fnGetFilteredNodes().

How can I get this to work in coffeescript? How can I call a function?

This discussion has been closed.