I have this form, and i want to retrieve the data submitted in the password and id
fields in order to see i this is a legal user using Jquery:
<form>
<div id="login" align="right" >
Password: <input type="password" id="pass"/>
Username: <input type="text" name="name" value="User" id="user"/>
<input type="submit" id="send" value=" Send " class="submit" />
<hr color='black'/>
</div>
</form>
any ideas what should be written in the js file?
EDIT:
i have a fixed and single password and user name, lets say they are both ‘admin’
Try the following:
Fiddle here: http://jsfiddle.net/paD2s/5/
I hope it helps.