Hi, im new to PHP and tried to do the following in my .js file:
function ChangeTextbox(){
setTextBox(' <?php include "exampledatafile1.txt" ; ?> ');
}
It doesn't seem to work... Why?
I expected the server to substitute the php tag with the text from my file. Instead the textbox gets the php statement itself. Is there an error? Is it because its a .js file, and my server doesn't look through that?
Sorry if it's stupid, explanations are very welcome!