DataTable JQUERY add two buttons

I would like to replace the  "Display xx record per page" with  two buttons 1) ADD RECORD  2) RESET

These two buttons should be on the same height as the Search Field and "Display xx record per page" should be removed.

How can I accomplish this ?
Errol FarroAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rainer JeschorCommented:
Hi,
here we go:
$(document).ready(function() {
    $('#example').dataTable(
    {
        "dom": '<"toolbar">frtip'
    });
     $("div.toolbar").html('<button id="btnAddNew">Add new</button>&nbsp;<button id="Reset">Reset</button>');
});

Open in new window


Live sample:
http://jsfiddle.net/EE_RainerJ/hkkt12rt/

HTH
Rainer
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Errol FarroAuthor Commented:
Great !!!!!! Exactly what I needed
0
Errol FarroAuthor Commented:
Just an extra question !!!!!

How can I put the search box to the left of the screen (instead of the right) and then  place the two buttons behind the search ?
 
Example
Search for xxxxxxxxxxxxxxxxxx  btnADD btnRESET
0
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

Rainer JeschorCommented:
Hi,
that would have been really worth an extra question:
http://jsfiddle.net/EE_RainerJ/tzvomf1q/

KR
Rainer
0
Errol FarroAuthor Commented:
I have added the extra question as a new question under "DataTable JQUERY - left justify search and add two buttons". Please provide your link in the question so I may award you the points
0
Rainer JeschorCommented:
Thanks a lot!.
I really appreciate this!

KR
Rainer
0
Errol FarroAuthor Commented:
You have been a great help - your code is fabulous
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
jQuery

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.