Change shortcode value by jquery in WP Editor

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