|
-
Apr 13th, 2018, 03:05 AM
#1
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");

Any workaround? TIA!
-
Apr 13th, 2018, 01:33 PM
#2
Re: Append an input element to datatable
Which library are you using, datatales.net?
-
Apr 22nd, 2018, 10:27 PM
#3
Re: Append an input element to datatable
I'm just using a plain bootstrap.
-
Apr 23rd, 2018, 08:01 AM
#4
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.
-
Apr 23rd, 2018, 11:55 AM
#5
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|