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.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
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