My goal is to append ?v= + Math.floor(Math.random());
at the end of every .css
and .jpg
file. I am still a beginner with JQuery and here is what I have managed to come up with so far.
$(document).ready(function(){
$(something).each(function( index ) {
//Add ?v= + Math.floor(Math.random()); to the end of each .css
//file and .jpg file
});
});
I want to transform main.css to main.css?v=
Your assistance would be greatly appreciated.
Thank you