I'm trying to move the dropdown that DataTables uses to determine how many rows to display. One way I thought of was to use jQuery's prependTo()/appendTo() functions, but it feels a bit too hack-y. I tried searching through the DataTables API to see if there was some native way of doing it, but I couldn't find anything. I was wondering if there was a better way to do this.
This is basically what I'm trying to do: http://jsfiddle.net/jbZG7/
$("#tableID").dataTable();
$("#tableID_length").prependTo("#new-div-id");
Thanks!
I created a custom dataTables widget which combined jQuery UI Dialog with DataTables. I too needed to move dataTable controls to custom locations, which could not be accomplished with sDOM very much in the same way you need to.
When looking for a solutions I was concerned about .appendTo/.prependTo being too hacky, but as it turns out .appendTo/.prependTo are the best solutions I have found.
$('tableID').dataTable({
fnInitComplete : function( oSettings, json ){
$("#tableID_length").detach().prependTo("#new-div-id");
}
});
I'm very new to Javascript and pretty new to CSS/HTML as well. I'm trying to create a vertical menu with CSS and javascript. The sublevels should appear on the right of the menu when someone click on ...
I'm very new to Javascript and pretty new to CSS/HTML as well. I'm trying to create a vertical menu with CSS and javascript. The sublevels should appear on the right of the menu when someone click on ...
I am using the Gantt Chart provided by Google. I have added a listener to when I click on any of the elements or entity in attempt to return the row/columns data, but it is returning empty, ...
I am using the Gantt Chart provided by Google. I have added a listener to when I click on any of the elements or entity in attempt to return the row/columns data, but it is returning empty, ...
Noob at polymer here, so please bear with me. I'm trying to learn how to create a form, one that requires the user to input text into a textbox, before hitting "Submit". Should the user hit "Submit" ...
Noob at polymer here, so please bear with me. I'm trying to learn how to create a form, one that requires the user to input text into a textbox, before hitting "Submit". Should the user hit "Submit" ...
I have been working with a page that redirects a user to either an installed application or a webpage (the fallback). This is called when the page first loads via ClientScript.RegisterStartupScript; ...
I have been working with a page that redirects a user to either an installed application or a webpage (the fallback). This is called when the page first loads via ClientScript.RegisterStartupScript; ...