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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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

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
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
Angular Fundamentals

Learn the fundamentals of Angular 2, a JavaScript framework for developing dynamic single page applications.

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

KR
Rainer
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
Rainer JeschorCommented:
Thanks a lot!.
I really appreciate this!

KR
Rainer
Errol FarroAuthor Commented:
You have been a great help - your code is fabulous
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.