How to load plugin script from frontend and get value by id from backend?

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 working on backend but not working on frontend

Read more here:: How to load plugin script from frontend and get value by id from backend?

Leave a Reply

Your email address will not be published. Required fields are marked *