Note that there are some explanatory texts on larger screens.

plurals
  1. POExtracting text from HTML using Javascript
    primarykey
    data
    text
    <p>I have this code and I want in javascript to extract the username and password to make some sort of login verification. How can I do that? Edit: I am using a node js server to extract some data, but is has nothing to do with the login page I want to do. I am trying to make a login and when the user presses the button to login it ill verify if the password and username matches (login verif) and if it foes it goes to the menu if it doesnt, gives an error. </p> <pre><code>&lt;div id="login" data-role="page"&gt; &lt;div data-role="panel" id="mypanel" data-theme="a" data-position="left" data-display="reveal"&gt; &lt;ul data-role="listview" data-theme="h"&gt; &lt;li&gt; &lt;a href="#menu" &gt; Menu&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href="#register" &gt;Register&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href="#cart" &gt; Cart&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href="#account" &gt; Account&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href="#login" &gt; Login&lt;/a&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/div&gt;&lt;!-- /panel --&gt; &lt;div data-role="header" data-theme="a" data-position="fixed"&gt; &lt;a href="#mypanel" data-role="button" data-icon="bars" data-iconpos="notext" data-corners="false"&gt;&lt;/a&gt; &lt;h1&gt;Log In&lt;/h1&gt; &lt;/div&gt; &lt;div data-role="content"&gt; &lt;!-- username --&gt; &lt;label for="username"&gt;Username&lt;/label&gt; &lt;input id="username" title="Must be at least 8 characters."/&gt; &lt;br /&gt; &lt;!-- password --&gt; &lt;label for="password"&gt;Password&lt;/label&gt; &lt;input id="password" type="password" title="title it hard to guess." /&gt; &lt;br /&gt; &lt;p&gt; &lt;button type="button" title="This button won't do anything"&gt; Proceed &lt;/button&gt; &lt;/p&gt; &lt;label for="register"&gt;Don't have an account?&lt;/label&gt; &lt;/div&gt; &lt;div data-role="content"&gt; &lt;a href="#register"&gt;Register&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload