I am attempting to extract the code from a CSS file and store it in a string for future use. I have come across a solution in a different post that seemed promising, but my attempts to implement it were unsuccessful.
$.ajax({
url: "css/style.css",
dataType: "text",
success: function(cssText) {
}
});
Could anyone provide guidance on how to retrieve and save the CSS code?
Thank you