You can save an item to local storage with one line. Something like this…
localStorage.setItem("isDisabled", "true");
Then you can check for the value later by doing something like this…
if(localStorage.getItem("isDisabled")===null) {
//
}
Or update the value from true to false …
localStorage.setItem('isDisabled', 'false');
Related Posts:
- Contact form 7 select box different value-text than content-text in option [closed]
- Contact Form 7 plugin refreshing page on submit [closed]
- How to disable autocomplete for inputs in contact form 7? [closed]
- jQuery Plugin to use WordPress functions in AJAX request
- Form isn’t inserting data into database with ajax plugin
- AJAX fileupload – TypeError: not a function ajaxSubmit()
- Contact Form 7 “non-selectable” options in a drop down [closed]
- Using AJAX to run SQL statement and populate dropdown
- login form should redirect to register page for in 1st login next time it should redirected to home page
- How can I implement radio buttons with icons in Contact form 7?
- get/show Last ID
- Let readers suggest edits from the frontend
- jQuery plugin only in one page/post
- Where should my plugin POST to?
- Multi step form, custom plugin
- Plugin form unable to process
- Add jQuery to WordPress page
- How do I use WordPress PHP functions in my Javascript code?
- What’s the point of using WordPress’s built in admin-ajax.php?
- WordPress plugin form not saving data
- Pass a php string to a javascript variable
- Calling JavaScript file with Custom Plugin
- Problem in loading javascript in footer
- Using jquery migrate for plugins incompatible with jquery 1.10.2
- How to trigger $_GET request within admin plugin page?
- Form doesn’t submit on second submit call
- Adding a slider captcha to the comment system
- How to put JQuery/Ajax inside shortcode?
- Plugin for a text modal box [closed]
- Can someone please tell me what is wrong with my plugin?
- Is there a way to set the default active tab on Post UI Tab pluggin?
- looking for navigation plugin (accordion) [closed]
- When using Simple Fields plugin, how do I pull the information out of the database to display on a page?
- Can I use custom CSS and js plugin to put JavaScript in to validate my forms
- WordPress function not being called from jQuery method
- Time consuming callbacks in customizer
- Getting value from dymanic text variable into Contact Form 7
- auto populate list of questions if user select a category xyz
- WordPress WPforms customization
- Adapt PHP form action for WordPress?
- How to prevent plugins from loading jQuery
- JQuery plugin that works with Google 1.10.2 and not with WordPress 1.10.2
- Post Comments with Ajax in WordPress
- Integrating jQuery Datatables with Editor into wordpress admin
- Stop WordPress processing Javascript as text
- How to add a dvi tag to a shortcode then change a generated text using jQuery
- Contact Form 7 – Form name blank [closed]
- Plugin that will output submitted form data for user? [closed]
- coding a WordPress AJAX Form using PHP to check if User is Logged Out and Show error
- Gravity Forms returns to odd position
- WordPress Multi-Step Product Search
- add_meta_box creating default form field types
- Custom meta box with jQuery.sortable custom post type list
- Load CSS files in header of Bones theme?
- Storing Form data in a different database
- Portfolio Slideshow Sliders Behaving Oddly When in jQuery Ui Tabs
- JS Plugin not executing the js correctly. Trying to make all internal links scroll smoothly
- Call javascript functions from each page
- In wordpress how to sent different email separetly when i click on different email ids [closed]
- How to append new form elements in “Add New” form of Users in WordPress admin panel?
- Looking for a simple checkout plugin [closed]
- Redirect plugin after form submit or show errors
- WordPress plugin isn’t loading completely
- Jquery POST Ajax Return null data in wordpress
- WordPress jQuery Post – Amending Variable Value Within Function Command
- Overriding inline !important CSS with Javscript code snippet with media query
- WP Ajax DB issues
- Ajax Call not Working in Plugin
- update_post_meta is not working for me when I use e.preventDefault for update button
- Uncaught TypeError: Cannot read property ‘cycle’ of undefined
- Meta Key array building with multiple input values from fields
- Plugin to manage form submissions on admin panel
- How to solve Blocked a frame with origin from accessing a cross origin frame error in wordpress?
- Custom plugin giving: wp-admin/admin-ajax.php 400 (Bad Request)
- Overwriting Plugin’s Ajax callback function from theme
- Can’t find variable is_single in my jQuery plugin
- Specific plugin script not working on subdomain
- How to Add Jquery FullCalendar in wp plugin in admin
- Is there a function to search for a wildcard value when calling a shortcode?
- Plugin program: JQuery not working in this plugin
- Ajax, jQuery and WordPress
- Hyperlink to execute PHP
- How to get site homepage from plugin?
- jQuery loaded in wrong order for non-admin page views only
- Create plugin with form in post and submit it to specific form
- Trying to override/intercept a PhotoMosaic gallery link in WordPress using jQuery
- PHP and Jquery pass value from form. Update function on DataBase
- Retrieving old forms in Contact Form 7 [closed]
- Link Forms on WordPress
- Capturing POST data
- Plugin use of ajax/jquery depending dropdown
- Integrate Mailchimp to a Contact Form 7 contact form [closed]
- Load css classes after using ajax calls
- How to resolve these findings from security audit
- How to do Conact form 7 name field validation? [closed]
- Plugin Beauty Contact Popup Form with while loop
- Integrating WordPress Content into a jQuery Slider
- Change page content based on dropdown selection
- WordPress GiveWP Plugin showing blank page in none default theme [closed]
- plugin doesn’t retrieve data from database