I appreciate the response, but this answer only works if the "value" of "Open" is preset. (hard coded)
I need to style the text when it is populated by the javascript code. There will be no hard coded value and that value of "Open" or "Closed" will change twice a day when the javascript code runs.
Here is a better sample of the code I am working with.
<! DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Text Color change 2</title>
<style>
.txtbx {
border: 2px solid #000;
width: 140px;
height: 60px;