Don't let IE select and copy tables hidden with jQuery.hide ()

I have a jQuery quick search bar on top of a data table. All records matching the search term will be visible $(row).show()

; and the rest are hidden $(row).hide()



After searching, I use mice to select / copy a list of strings from the search result and paste them into Excel. "Hidden" entries are also inserted.

I tried:


instead of hide()

- doesn't work in IE (line doesn't crash)

How do I get "visibility: crashing" to work in IE? Or is there any other solution to this problem?


source to share

1 answer

Instead of trying to hide invisible elements from IE / Windows, I suggest getting the results table

and cloning your search results with this table

and hiding the other. Thus, the only results available for selection are the ones you want to select.



All Articles