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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
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