I have two html files.
first.html
<button id="dada">dada</button>
second.html
<div id="chatbox"></div>
I have one js file for both of them.
script.js
$('#dada').on('click',function () {
$('#chatbox').css('border','3px solid red');
})
When I click on button in the first page i want to change the box in the another page. But this not working? How to do it properly? Thanks!