search something in DataTable returns html dom elements
search something in DataTable returns html dom elements
visceralist
Posts: 33Questions: 0Answers: 0
Hi there.
I want to apologize for not providing a working sample on my questions as the project i am dealing with is behind company wall and i can't post links to working pages.
my issue this: I have a datatable that has a list of my products in it. inside certain columns, I have classes with certain names like class="price".
if I search for a product with the word 'rice', it returns products that has the word rice in it (the ones I need) and products that doesn't but has the class price. so this happens for all search results if the search variable/querry matches some dom element inside the datatable.
is there an overarching functionality that I could supply to prevent dom traversing when searching for products?
thanks,
I want to apologize for not providing a working sample on my questions as the project i am dealing with is behind company wall and i can't post links to working pages.
my issue this: I have a datatable that has a list of my products in it. inside certain columns, I have classes with certain names like class="price".
if I search for a product with the word 'rice', it returns products that has the word rice in it (the ones I need) and products that doesn't but has the class price. so this happens for all search results if the search variable/querry matches some dom element inside the datatable.
is there an overarching functionality that I could supply to prevent dom traversing when searching for products?
thanks,
This discussion has been closed.