# \[HELP\]Javascript

**URL:** <https://forum.kirupa.com/t/help-javascript/291487>\
**Category:** web dev\
**Created:** [June 30, 2009, 1:02pm UTC](https://forum.kirupa.com/t/help-javascript/291487 "2009-06-30T13:02:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![epoy08](https://avatars.discourse-cdn.com/v4/letter/e/b5a626/32.png) [@epoy08](https://forum.kirupa.com/u/epoy08)\
**Post date:** [June 30, 2009, 1:02pm UTC](https://forum.kirupa.com/t/help-javascript/291487/1 "2009-06-30T13:02:22Z")

</div>

How can i get the value of the username and password with javascript and display it with alert command?

```auto

alert("username:"+username+" password:"+password);

```

```auto

<div id="sTable">
    <table>
        <tr>
            <th>User ID</th><th>Username</th><th>Password</th><th>Type</th><th>Employee ID</th><th colspan=2>Action</th>
        </tr>
        <tr>
            <span id="resultId0"><td>0</td><td>george</td><td>1234</td><td>admin</td><td>0</td></span>
        </tr>
        <tr>
            <span id="resultId26"><td>26</td><td>janet</td><td>1234</td><td>employee</td><td>1</td></span>
        </tr>
        <tr>
            <span id="resultId27"><td>27</td><td>ronald</td><td>1234</td><td>employee</td><td>4</td></span
        </tr>
    </table>
</div>

```
