If I write this in my background.js, it's ok:
$("body").append('<p>hello<p/>');
But if I want to write in a specific div of the html I cannot write my element:
$('.re-DetailFeatures').first().before('<p>hello<p/>');
These are my "content_scripts":
"content_scripts": [ {
"js": [ "jquery.min.js", "background.js" ],
"matches": [ "http://*/*", "https://*/*"]
}],
And the error that ir gives to my: "Uncaught TypeError: $(...).first is not a function"