Jquery inject script

hi ,
Iam tring to inject inside element , when clearing catch then works
after that when I go back to the desk then return to doc injection does not work

Iam using custom view loke POS and on init function I wrote
$(‘#nitree’).append(“hi”)
I have to clear cach after loading view to make inject work
any solutions ?

Can’t really say anything without looking at your script.