Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Conditional inline CSS for div?

Discussion in 'Troubleshooting & How-To's' started by jwest100, Dec 11, 2016.

  1. jwest100

    New Member

    Joined:
    Dec 11, 2016
    Messages:
    1
    Likes Received:
    0
    Hi and thanks for reading.

    •In each post I have a div, id="buy_info". Inline style for div, display: initial. PayPal buy now button resides in div.
    •I dynamically send post_id as item_id to PayPal in button parameters.

    When PayPal Instant Payment Notification is recieved with item_id, say "200", I want the CSS display style, for the buy_info div, in post_id 200, changed to "none".

    I know I can make the CSS display value conditional upon the value of the IPN item_id that was recieved but how?

    Thanks!
     
    #1

Share This Page

Web Hosting