How to add a dvi tag to a shortcode then change a generated text using jQuery

Your shortcode should add a unique id and not only a class. This can be an explicit id attribute (best) or by generating some random id. Now when outputting the shortcode you add a JS which uses specific selection based on the id.

tech