Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to use a script to inject a meta attribute in html

document.addEventListener('requireready', function onRequireReady() {
            require(['jquery'], function run($) {
                $(document).ready(function () {
                    $(".className").closest("element").attr("tag", "value");
                });
            });
        });
 
PREVIOUS NEXT
Tagged: #script #inject #meta #attribute #html
ADD COMMENT
Topic
Name
5+3 =