[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

datatables filter box

Posted on 2011-10-07
4
Medium Priority
?
419 Views
Last Modified: 2012-05-12
what is the id of the filter textbox
or how can i access the value in the filter textbox ?
0
Comment
Question by:dgrafx
  • 3
4 Comments
 
LVL 83

Accepted Solution

by:
leakim971 earned 2000 total points
ID: 36933006
>what is the id of the filter textbox
It don't have id, if you want to add one, call it just after init/creating the datatable :
$(":text",".dataTables_filter").attr("id", "filter_datatable_id");

>or how can i access the value in the filter textbox ?

var filter_datatable_current_value = $(":text",".dataTables_filter").val();
0
 
LVL 25

Author Comment

by:dgrafx
ID: 36933336
ok - you know your stuff!

thanks a lot
0
 
LVL 25

Author Comment

by:dgrafx
ID: 36936244
0
 
LVL 25

Author Comment

by:dgrafx
ID: 37262399
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hi all! Recently there was EE question and the person wanted to have a multi-column textbox <div> selection, so as a first step to answer I provided a link but that was not complete with JavaScript selection, but had a good style sheet. So as a ques…
How to build a simple, quick and effective accordion menu using just 15 lines of jQuery and 2 css classes
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Suggested Courses
Course of the Month19 days, 17 hours left to enroll

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question