Bootstrap table search function failing once rows have been added to the table.

I have a table that if I attach the bootstrap table options makes the table searchable.
<table data-pagination="true" data-search="true" data-toggle="table">

Open in new window

However, once I add rows to the table dynamically (via javascript) the new content loads fine in the table and is formatted as required, but the search option does not work as the table does not seem to be recognising that the new rows have been added. Indeed, if I use the search, it still searches what were the same records that existed in the table before the new rows were added. It's almost as if the table needs to be refreshed.

I have tried removing the options in the table tag that provide the search etc and dynamically applying them with javascript after the rows have been added.

Open in new window

The console log indicates that the attribute changes have been applied, but the table does not offer the functions.

Having now spent hours experimenting, I am out of ideas, so would be really grateful if someone could shine a light on what might be going wrong?
Who is Participating?

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

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.


Bootstrap table provide almost no nothing...

I highly recommend the use of Datatables with responsive option & Yadcf filters.
Don't forget to select Bootstrap version before downloading...

Demo and documentation


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
martmacAuthor Commented:
Thanks a lot, sorry for the delayed response, have been ill for the past couple of days!!
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

From novice to tech pro — start learning today.