Created
March 7, 2012 20:38
-
-
Save pancurster/1995974 to your computer and use it in GitHub Desktop.
Jak wypełnić formy zmiennymi z MIB'a
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form name="userinfo" method="get" action="info.html"> | |
<p>Please give us your information, so that we can send | |
you spam.</p> | |
<p>Name: <input type="text" name="name"/></p> | |
<p>E-Mail: <input type="text" name="email"/></p> | |
<p>Sex: <select name="sex"> | |
<option>Male</option> | |
<option>Female</option> | |
<option>Other</option> | |
</select></p> | |
<p><input name="send" type="submit" value="Send!"/></p> | |
</form> | |
<script language="JavaScript"> | |
var usrFrm = document.forms.userinfo; | |
val a = usrFrm.elements.name; | |
a = "Nowa wartosc"; | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment