How do I get the value of an element by id
<p>I'm using JavaScript and JQuery and when I select a certain page in my application, an id within the content div named myId shows the string "No results found". This means that when I select the page, the search which is included on every page, executes. If there are records to show, I get these records. If not, then I get the "No results found"-string.</p>

<p>What I want is to check the value of myId and when it is empty ("No results found"), I want to hide some controls on that page.</p>

<p>I already tried <code>$('#myId').val();</code> but it just gives 2 double quotes, even if it's not empty.</p>
