I am using a web page as a server and the Arduino as a client. whenever any modes is active the arduino will send

```
 <LED>on</LED>    

```

so the server based on this will change the status. I've change it to jQuery , the functionality is good but the text and color doesn't change

I was wondering that if someone could help me out to change the following code to jQuery?.. I've tried many things such as: `$('id').text('Ok');` but not working for me.
Thanks a lot in advance.

Code is:

```
if (this.responseXML.getElementsByTagName('LED')[1].childNodes[0].nodeValue === "on") {
    document.getElementById("evening").style.color = "#009933";
    document.getElementById("evening").innerHTML = "Evening Mode is ON";

    evening_state = 1;
} else {
    document.getElementById("evening").style.color = "#FF0000";
    document.getElementById("evening").innerHTML = "Evening Mode is OFF";

    evening_state = 0;
}

```