message inside html page without alert
Hi everybody i have a page that contain two div each one has a table with 3 th and 7 lines. what i want is to show a value from table just some not all of them inside a text box that i create . this is my code //<style> .callout { position: fixed; bottom: 35px; right: 20px; margin-left: 20px; max-width: 300px; } .callout-header { padding: 15px 15px; background: #275; font-size: 30px; color: white; } .callout-container { padding: 20px; background-color: #ccc; color: black } .closebtn { position: absolute; top: 5px; right: 15px; color: white; font-size: 30px; cursor: pointer; } .closebtn:hover { color: lightgrey; } div.absolute { position: absolute; top: 96px; right: 0; width: 200px; height: 100px; } </style> <div id="aob"> <div id="mydiv1" style=" width: 80%; height:50%; float:left; padding:30px;display: none" onclick="rca();" ondblclick="abo();"> <table id="table1"> <tr> <th align="center">NOM CLIENT</th> <th align="center">NUM</th> <th align="center">STATUS</th> </tr> </table> </div> <script> var table=[["xxx",8,"NOK"],["xxxx",5,"NOK"],["xxx",8,"Ok"],["xxx",9,"OK"],["xxxx",8,"NOK"],["xxx",8,"OK"],["xxx",8,"OK"]]; for (var i=0;i<table.length;i++){ document.getElementById("table1").innerHTML+="<tr><td>"+table[i][0]+"</td><td>"+table[i][1]+"</td><td>"+table[i][2]+"</td></tr>"; } var i; for (var i=0;i<table.length;i++){ if(table[i][2]=="NOK") console.log("Les cases suivantes sont nok name:"+table[i][0]); } </script> <div id="mem" class="callout"> <div class="callout-header">CalloutHeader</div> <span class="closebtn" onclick="this.parentElement.style.display='none';">X</span> <div class="callout-container">