jquery - How to avoid IE to copy hidden elements -


i have mvc view in have hidden elements used , other elements have used display:none.but in i.e 9 when right click , copy , paste content in word shows hidden elements well. kindly suggest method can make ie copy visible data not hidden elements. searched google not found valid solution. have found other link not useful: html , internet explorer: how avoid hidden elements copied/pasted

first of all, sorry bad english, it's not native language. reason gets selected because when select in ie<9, not selecting visible things html in general. when paste copied data, show -because copied full html remember?- "display:none" elements.

the real way can think of, prevent behaviour not have hidden elements in dom. @ least not elements don't want have copied.

computational purposes

if reason of hiding elements is, can use data jquery or else. can use trick answer: https://stackoverflow.com/a/10130156/1474573


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -