Shortcodes are backend stuff, so you can’t just change values of shortcodes itself in editor with jQuery, the thing you can do is to call both shortcodes, hide one of them, and on click show him and hide other one. It all depends what do you want to do, but one of the option is to hide them like this and in this case use classes also with display:none
Related Posts:
- Creating Multiple wp_localize_script for Shortcode?
- Add custom shortcode button to Editor
- call shortcode in javascript
- Including javascript for a shortcode
- Localize variable for multiple Shortcodes
- How disable checkbox when listbox value changes in tinymce
- Creating multiple enclosing shortcodes and fixing JS issues on click
- WP UI style within shortcode – Any Suggestions?
- Why Won’t my jQuery Play Nice with WordPress?
- Reload wordpress shortcodes
- include shortcode values in Thickbox form
- Populating shortcode values dynamically in theme template
- Nested Gallery Shortcode INTERMITTENTLY working
- echo do_shortcode for Contact Form 7 from within dynamically loaded php file
- How to add shortcode to show/hide press releases?
- Uncaught TypeError: undefined is not a function (shortcode-box)
- Append jquery script for each [partners] shortcode with specified values
- Create a short code that inserts js
- jQuery not working for tabs shortcode [closed]
- jQuery $(this) keyword
- jQuery Selector: Id Ends With?
- jQuery dialog popup
- jquery loop on Json data using $.each
- Click button copy to clipboard
- $(document).on(“click”… not working?
- JavaScript console.log causes error: “Synchronous XMLHttpRequest on the main thread is deprecated…”
- How to read data From *.CSV file using javascript?
- jQuery get the image src
- how to define variable in jquery
- $.focus() not working
- Enqueue core jQuery in the footer?
- How to correctly include jquery-ui effects on wordpress
- Check if user is logged in using JQuery
- I want to enqueue a .js file to my child theme
- How to modify wp.media to get and display multiple images
- How to prevent WordPress from loading the jQuery library at the top of the page
- wp_mail script with jQuery post
- Hacking TinyMCE for better usability (shortcodes and html)
- adding the full image path to a wordpress javascript file
- wp_head() remove redundant scripts?
- Unable to run jQuery script in my template file
- How to add unique image class to WordPress
- Dropzonejs with WPCF7 [closed]
- Edit single attachment on click (WP-admin)
- Jquery conflict
- Accept AJAX call with serialized form data
- Ajax not posting form data to query in PHP function
- Enqueue WordPress jQuery after it’s been deregistered by a plugin
- gravity forms jQuery.load into modal [closed]
- jQuery.accordion isn’t a function even when enqueued
- Custom Theme Design: do I need to “enable” jquery/javascript libraries?
- WordPress function not being called from jQuery method
- “TypeError: ((n.event.special[g.origType] || {}).handle || g.handler).apply is not a function” error from jquery.js?ver=1.12.4-wp library
- How Can I Add “New” Lazy Load Images To NewsPaper WP Theme? [closed]
- WooCommerce Ajax Cart Update Stopped Working
- WordPress AJAX Load More function duplicating a post
- Advanced Ajax Page Loader (AAPL) blocks resources
- Send multiple attachments with JQuery and wp_mail() function
- Plugins loading multiple copies of JQuery
- Why doesn’t my very simple jQuery work?
- TinyMCE plugin won’t work with jQuery 3.5.1 (testing with “Test jQuery Updates”)
- What is the propre way to include jQuery UI Datepicker’s CSS in plugin?
- How register library to use jquery correct
- Referrer URL with jQuery or Javascript – Cache & Referrer URL Issue
- How do I translate string inside jQuery script with WPML?
- Using Foundation 5 in WordPress Administration Area
- change order of add_action hooks for jquery to be loaded first
- Sorting WP Auctions by date/price?
- specifying relative file paths in WP with jQuery requests not working
- Can’t delete the default jQuery in the theme
- Bootstrap modal with jQuery post [closed]
- How to use wp_update_post with ajax on frontend
- including jquery
- Customizing the Jquery Calendar [closed]
- How to declare/provide file path in JQuery which is emeeded in the WordPress theme
- Name of JQuery technique used on this site [closed]
- Show More Show Less – Not Working
- How to make JQuery load on top of head tag before everything
- Trying to add google ad onclick to wordpress and Divi buttons and header link
- Dashboard controls have all stopped working
- jQuery Plugin Uncaught TypeError: jQuery(…).slider is not a function
- How to use jQuery plugin
- $_POST empty in using new php file added to theme
- How to blur the_post_thumbnail() via blur.js (jquery)?
- Plugin preventing media buttons from working
- Uncaught TypeError: Cannot read property ‘ajax’ of undefined
- How to deregister scripts all at once
- Using jQuery DataTables and yadcf
- :first-child applying to all links [closed]
- Ajax autocomplete based on usercode
- jQuery autcomplete not working
- Add jQuery function to media button
- Why won’t this jQuery work in WordPress?
- Change WooCommerce Checkout Manager Datepicker to Jalali
- jQuery append only works if I select html in admin section [closed]
- jQuery color picker function on change
- Can’t get this jQuery snippet to work with WordPress
- Javascript Loading Effect to URLs
- How to combine jQuery in-place editor with $wpdb->update
- jQuery Add/Remove Classes Not Working