Note that there are some explanatory texts on larger screens.

plurals
  1. POobject expected error javascript
    primarykey
    data
    text
    <pre><code>&lt;script type="application/javascript" language="javascript"&gt; function showElement(elementID, show){ var element = document.getElementById(elementID); if (element) { element.className = (show ? element.className.replace(/hidden/gi, "show") : element.className + " hidden"); } } &lt;/script&gt; &lt;table cellpadding="3" cellspacing="1" border="0" width="100%"&gt; &lt;tr class="baseGrayMedium"&gt; &lt;td colspan="2"&gt; (&lt;a href="javascript:void(0);" onClick="showElement('evicChkLst',true);" class="nostyle"&gt;+&lt;/span&gt;&lt;/a&gt;|&lt;a href="javascript:void(0);" onClick="showElement('evicChkLst',false);" class="nostyle"&gt;-&lt;/span&gt;&lt;/a&gt;) &amp;nbsp;&amp;nbsp; &lt;B&gt;Eviction Checklist&lt;/B&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; </code></pre> <p>I get the javascript error saying object expected and it points to onClick event in the HTML code.. Could some one suggest me why so</p> <p>EDIT:</p> <pre><code>&lt;script type="application/javascript" language="javascript"&gt; function showElement(elementID, show){ var element = document.getElementById(elementID); if (element) { element.className = (show ? element.className.replace(/hidden/gi, "show") : element.className + " hidden"); } } &lt;/script&gt; &lt;table cellpadding="3" cellspacing="1" border="0" width="100%"&gt; &lt;tr class="baseGrayMedium"&gt; &lt;td colspan="2"&gt; (&lt;a href="#" onclick="javascript:showElement('evicChkLst',true);" class="nostyle"&gt;+&lt;/span&gt;&lt;/a&gt;|&lt;a href="#" onclick="javascript:showElement('evicChkLst',false);" class="nostyle"&gt;-&lt;/span&gt;&lt;/a&gt;) &amp;nbsp;&amp;nbsp; &lt;B&gt;Eviction Checklist&lt;/B&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; </code></pre> <p>Now the code looks some thing like the above</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload