Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Update: Narrative Insights has been restored and is now available.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
Hiding DIV Tags
Hello,
I need to hide a section of HTML on the website (the add to cart button and prices) from items that meet certain criteria. I have my javascript working for hiding the prices but I'm having trouble using javascript to hide the <div> tag.
Here's the js I'm using:
&lt;script type = "text/javascript"&gt; var hide = '&lt;%=getCurrentAttribute('item','custitemretailhide')%&gt;' if hide == "True" { document.divhideme.style.display='none' } &lt;/script&gt;I also tried it with a ";"
&lt;script type = "text/javascript"&gt; var hide = '&lt;%=getCurrentAttribute('item','custitemretailhide')%&gt;' if hide == "True" { document.divhideme.style.display='none'; } &lt;/script&gt; 0