Question About conflict with jQuery '$'

Question About conflict with jQuery '$'

LenoaLenoa Posts: 2Questions: 0Answers: 0
edited February 2012 in General
Hello,
I am attempting to add the DataTables row select example (http://datatables.net/release-datatables/examples/api/select_single_row.html) , but I can not use oTable.$('tr.row_selected')

The following error occurs : "Uncaught TypeError: Object [object Object] Has No method '$'"

I have included jQuery.1.7.1 and DataTable.1.8.0

Any help is greatly appriciated

Replies

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    > DataTable.1.8.0

    That's the problem. The $ API method is new in 1.9 ( http://datatables.net/new/1.9 ). If you upgrade to 1.9.0 then it should work fine :-)

    Allan
  • LenoaLenoa Posts: 2Questions: 0Answers: 0
    That worked! Many thanks Allan :)
This discussion has been closed.