javascript - How can I use enter/br/ or \n in getElementById("ErrorTable").innerHTML? -


hello guys might need can not figure out.

i have registeration form , added red table errors in filling inputs, have new problem , errors in 1 row , don't know how can "enter" , down in list , not 1 one right left.

document.getelementbyid("errortable").innerhtml += '•agree terms'; 

and table html:

    <center>          <div class="registertextarea">             <table id="errortable">              </table>          </div>     </center> 

i have new problem here: http://prntscr.com/7bxe6k. how clear ul doesn't submit again picture , how fit in box split left when there no space.

html:

<center>      <div class="errors">         <ul id="errortable"></ul>      </div> </center> 

style:

.errors { background-color: #ffb6b6; border: groove 1px #a81b1b; width: 500px;  height: 50px; text-align: right; font-size: 10px; color: #a81b1b; }  .errors ul li {  } 

i think can use unordered html list instead of table. i've updated code below

html

<center>      <div class="registertextarea">         <ul id="errortable">         </ul>      </div> </center> 

java script

    document.getelementbyid("errortable").innerhtml = '';     document.getelementbyid("errortable").innerhtml += '<li>agree terms</li>'; 

hope expected such result.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -