Can you hide specific text with javascript?
|
demo 19 Dec 2008 01:44pm I need to hide a specific series of numbers on a website. Is there a javascript code I could put in every page that would make 9231645 non-viewable? (the numbers don't mean anything so it doesn't have to be secure) If I could change the id tag with javascript, I could hide it with css. <div id="show">12900</div> but if 9231645 is found in the page change the id tag: <div id="hidden">9231645 </div> |
Answers
|
demo 19 Dec 2008 03:37pm Are you seriously attached to javascript on this one? Consider using the css visibility property. http://www.w3schools.com/css/pr_class_visibility.asp |
Related
Submit Answer
You must be logged in to post an answer. Please Login or Register.
Powered by phpMyAnswers.