0

first name
Same as first name
second name

This coding can only when click the checkbox. It will fill same value from textfield ab to textfield zb
But I want to when click the checkbox. it will also make the same value from textfield bb to textfield yb

How can I write the script?

2
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by almostbob
0

first name
Same as first name
second name

Code blocks are created by indenting at least 4 spaces
... and can span multiple lines
0

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head>
<title>dummy</title>
</head>
<body>
fname:<input type='text' id='name11' name='ab' value=''>
<input type='text' id='name12' name='zb' disabled='disabled'><br>
sname<input type='text' id='name2' name='name2' value=''>
<button id='button1' name='chckbutton' onmouseup="document.getElementById('name12').value = document.getElementById('name11').value;"> click </button>
</body>
</html>
sample code

Edited by almostbob: code

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.