gevensen Posted December 17, 2010 Share Posted December 17, 2010 I have been playing with jQuery columnManager plugin today http://p.sohei.org/stuff/jquery/columnmanager/demo/demo.html and I have been having a problem getting it to work with a dynamically created table ( generated by a jquery ajax call ) the code works fine on a static page but i havent been able to figure out the selector for a dynamic table any ides? $('#table').hideColumns(3); Quote Link to comment https://forums.phpfreaks.com/topic/222019-jquery-hiding-a-dynamically-generated-table-column/ Share on other sites More sharing options...
trq Posted December 17, 2010 Share Posted December 17, 2010 What does the code that creates the table look like? Quote Link to comment https://forums.phpfreaks.com/topic/222019-jquery-hiding-a-dynamically-generated-table-column/#findComment-1148814 Share on other sites More sharing options...
gevensen Posted December 17, 2010 Author Share Posted December 17, 2010 regular stuff but written out of a jquery ajax call <table id = "table"> <tr> <td>one</td> <td>two</td> <td>three</td> <td>four</td> </tr> </table> Quote Link to comment https://forums.phpfreaks.com/topic/222019-jquery-hiding-a-dynamically-generated-table-column/#findComment-1148816 Share on other sites More sharing options...
trq Posted December 17, 2010 Share Posted December 17, 2010 There shouldn't be spaces around the = You should be able select this table via its id $('#table') or purely by the <table> tag itself if its the only table on the page $('table'). Quote Link to comment https://forums.phpfreaks.com/topic/222019-jquery-hiding-a-dynamically-generated-table-column/#findComment-1148819 Share on other sites More sharing options...
gevensen Posted December 17, 2010 Author Share Posted December 17, 2010 i took the spaces out no go :'( if i write a test table on the static page before any ajax updates it works fine, its just when i write it dynamically i thought it would be a simple table selection also but no its in the success portion of the ajax call but as I am looking at it writing this response i realize i put the hide call before the inner response thanks for the help, but this was just stupid on my part : Quote Link to comment https://forums.phpfreaks.com/topic/222019-jquery-hiding-a-dynamically-generated-table-column/#findComment-1148829 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.