jQuery(window).on('load', function(){

    var keyword = jQuery('#keyword').val(); //get keyword value
    var description = jQuery('#description').val(); //get category value

        jQuery('meta[name=keywords]').attr('content', '$keywords');
        jQuery('meta[name=description]').attr('content', '$description');

   alert("window is loaded");


This is my code it is working on backend but not working on frontend

New contributor
Get Result is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Your Answer

Get Result is a new contributor. Be nice, and check out our Code of Conduct.

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.