Read Value of Hidden Column in JQuery

前端 未结 8 601
青春惊慌失措
青春惊慌失措 2020-12-20 13:09

I need to hide a column on the table, but after that I cannot read selected row\'s hidden column value.

 dtTable = $(\'#lookupTable\').DataTable({
       \"c         


        
8条回答
  •  渐次进展
    2020-12-20 13:51

    Adding to this as this is old, and none of the answers had the quick, clean jquery format I was used to. You can use the traditional jquery selectors even if the objects you are trying to access are not currently rendered in the DOM, i.e. hidden or on another page, by doing it as a method of the Datatable. So in your case:

    dtable.$("yourJQuerySelector")
    

    This will select the element as you are used to and worked for my case.

提交回复
热议问题