1 Attachment(s)
Append an input element to datatable
I would like to move the filter button and its label to the datatable as can be seen in the image. Using Firebug I can see that the search button is contained in a "tableoffenses_filter" div so I tried appendTo but it does not move.
Code:
$("#blah").appendTo("#tableoffenses_filter");
Attachment 158199
Any workaround? TIA!
Re: Append an input element to datatable
Which library are you using, datatales.net?
Re: Append an input element to datatable
I'm just using a plain bootstrap.
Re: Append an input element to datatable
Could you provide the markup for your search label and input, as well as it's parent container? I'm not interested in the child elements in the parent aside from the label and input, I just want to see what classes you're using to style everything.
Re: Append an input element to datatable
That looks like jQuery - bootstrap has the same syntax?
You should be able to execute that code in the IMMEDIATE window and watch the DOM change as you make adjustments to the code.