HUZZAH!πππ After some more testing I figured it out!
The problem wasn’t with my IF statement, it was that there was nothing registering the change to the field to trigger the IF statement. Also, I apparently didn’t need that extra variable in there… ANYWAY, this is what worked:
jQuery(function ($) { var total = $(':input[name=input_5]'); total.change(function() { if (total.val() === "2") jQuery(".conditional-div").hide(); else jQuery(".conditional-div").show(); }); });
Related Posts:
- How to enable button onClick functions and java script in wordpress post
- how to add gravity forms to blog page(posts page) in WordPress
- How to put Youku video on my wordpress site?
- JS Manga Reader with WordPress NoConflict JQuery
- How to find out who is hosting my WordPress site?
- In WordPress Using Elegant Theme’s Divi Theme, Long menus don’t show
- Links not clickable on mobile devices in WordPress
- Flaticons not showing up on WordPress
- WordPress PHP proxy/helper pages for Twitter API
- Is it possible to combine a WordPress template (Semplice) and some HTML & CSS pages?
- How to add custom javascript to WordPress Admin?
- “The Events Calendar” plugin by Modern Tribe in WordPress not working
- How can I access http://localhost/wordpress/wp-admin/install.php?
- How can I access http://localhost/wordpress/wp-admin/install.php?
- Changing code font size on wordpress
- WordPress Password Protected Page is not protected
- How to fix facebook sharer button that appears cutted on wordpress
- Internet Explorer 8 issues with WordPress 3.8
- Internet Explorer 8 issues with WordPress 3.8
- Set size of WordPress thumbnail post
- How to set on load marathi language using google translator in wordpress?
- Divi Child Theme Breaks WordPress Customizer
- Cuelinks widget’s half part is getting hidden on WordPress website
- WordPress how to use jquery and $ sign
- WordPress how to use jquery and $ sign
- Muffin Builder has a limit? (WordPress – Be Theme)
- WordPress: LinkedIn Posting Link doesn’t show meta og description or titleοΏΌ
- How can I embed a YouTube video in a WordPress template page?
- Custom CSS in WordPress messing up
- How do I check whether a checkbox is checked in jQuery?
- How to add jQuery code into HTML Page
- Adding attribute in jQuery
- Bootstrap Dropdown menu is not working
- jquery SlideToggle effect in upward direction?
- Set timeout for ajax (jQuery)
- Not Authorized to View This Page
- Jquery swipe left or right on mobile
- Set selected option of select box
- How to move an element into another element?
- Click button copy to clipboard
- document.getElementsByClassName().innerHTML always returns “undefined”
- How to get height of div in px dimension
- Creating a div element in jQuery
- Get class list for element with jQuery
- Random background images CSS3
- Why is jquery show() not working in example
- How can I use jQuery to run MySQL queries?
- Print a div content using Jquery
- TypeError: $ is not a function WordPress
- Fully responsive HTML5 video
- HTML anchor link – href and onclick both?
- How can I know which radio button is selected via jQuery?
- How to implement inline cm/inches conversion in WordPress
- How to change thumbnails for WordPress pages (KakaoTalk)
- WordPress asking for my FTP credentials to install plugins
- how can i get a sign in/ Register plug in like fiverr.com’s on WordPress
- Php – Your PHP installation appears to be missing the MySQL extension which is required by WordPress
- How can I block doubleclick.net cookie from my wordpress website?
- WordPress how to remove blocksy theme price and put my own price
- display data on wordpress site using mindbody api
- Exclude Featured Posts in WordPress ‘Recent Posts’ Function
- php, cookies, wordpress – how to make automatic login in one one site, login and on other one
- WordPress Login Tracking Google Analytics
- WordPress – Check if user is logged in
- nginx progy pass doesn’t work in WordPress admin
- Marathi typing option in wordpress Editor
- wp-admin vs wp-login in wordpress
- With “magic quotes” disabled, why does PHP/WordPress continue to auto-escape my POST data?
- WordPress localhost not working
- validate textfield contents in wordpress simple job board plugin
- Apache mod_rewrite Infinite Loop when Accessing WordPress Admin Dashboard
- Dash icons Not Showing properly in Menu Using WordPress
- No paged query var being set in WordPress custom pagination
- Rename block fields in the WordPress style dropdown
- WordPress NextGEN loop through images from specific album
- WordPress broken app to try wpscan kali tool
- WordPress cp-appointment-calendar redirection to paypal issues
- How to define custom capabilities in wordpress for custom plugin
- Using WPBakery Page Builder and Default WordPress Elements
- WordPress: schedule multiple action hooks of the same name and time
- Prevent category updates in WordPress Woocommerce REST API
- wordpress login wp-login.php change url
- facebook- wordpress post not showing pictures on fb link
- WordPress post image change on hover (ACF?)
- WordPress- url for localhost wp-admin is not working
- WORDPRESS Updating failed. Error message. The response is not a valid JSON response
- Get Categories of events in WordPress Events Calendar Pro Plugin
- Full width image in separated row on wordpress (Ref attacted)
- Converting endnotes to hyperlink for export to WordPress
- How to correctly use get_template_directory_uri() WordPress function to load an image that is in a subfolder of my theme?
- Error establishing a database connection in my localhost
- Correct way of using wp_get_attachment_image() in wordpress
- How to easily add cropped screenshot to self-hosted WordPress as hosted image?
- jQuery UI Datepicker not working
- Which ways can be used to log in to WordPress?
- Auto scroll to id on page load on all pages except home page. Only do this on mobile
- How to run Javascript popup modal in a loop?
- If user has clicked link add class and store using PHP/WordPress
- how to allow download after newsletter subscription?
- How can I add the Post ID to Class Name in Jquery?