Skip to content

Instantly share code, notes, and snippets.

@Barmunksu
Forked from anonymous/VLPVXN.markdown
Created June 1, 2015 08:06
Show Gist options
  • Save Barmunksu/7fedec7c94c8357989b0 to your computer and use it in GitHub Desktop.
Save Barmunksu/7fedec7c94c8357989b0 to your computer and use it in GitHub Desktop.
<input id="name" type="text" name="name" /><br>
<input id="age" type="text" name="name" /><br>
<input id="sity" type="text" name="name" /><br>
<input id="country" type="text" name="name" /><br>
<select id="sample">
<option value="0">New First Option</option>
<option value="1">Option 1</option>
<option value="2">Option 2</option>
<option value="3">Option 3</option>
<option value="4">New Last Option</option>
</select><br>
<a href="#" onClick="samovivoz();">ссылка</a>
VLPVXN
('-' * 6)
A [Pen](http://codepen.io/anon/pen/VLPVXN) by [Captain Anonymous](http://codepen.io/anon) on [CodePen](http://codepen.io/).
[License](http://codepen.io/anon/pen/VLPVXN/license).
function samovivoz()
{
document.getElementById('name').value = 'John';
document.getElementById('age').value = '20';
document.getElementById('sity').value = 'moscow';
document.getElementById('country').value = 'Russia';
document.getElementById('sample').value='3';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment