Help using Ajax for checking if directory exists
I'm requesting some help to figure out, how to handle the following problem, without using jquery :)
I have a following html code :
and I can't figure out how I can change its background-color depending on if directory exists or not.
<textarea style="background-color:red" name="dirNametoCheck" id="dirNametoCheckID" onkeyup="checkThisDirectory('dirNametoCheckID');" > blabla </textarea>
Thanks for your help