I was taught of using this, now there is a little problem:
<html>
<body>
<div id="mytext">text</div>
<script type="text/javascript" src="my.js"></script>
<script type="text/javascript">hideMyText();</script>
</body>
</html>
My Js:
function hideMyText()
{
$('#mytext').hide();
}
so I did as I was told, but the text flickers now. It is visible for a brief of moment, then disappears. How to make it run immediatly? I know I should hide it with CSS - but its possible to have a different task to do (like here, highlight a text: http://jsfiddle.net/UPs3V/291/)