hi everyone i have 2 textboxes: when i enter a name on first textbox the first letter of what i have entered will appear on second textbox...is it possible for javascript?

to make it clear:
i will enter a name "COCOMARTIN" on the firstbox and the first letter " C " will appear on second textbox..

can someone help me on this ... :)

Hopes this may help you

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
function name_dis()
var str=document.f.t1.value;
var lett=str.charAt(0);

<form id="form1" name="f" method="post" action="">
  <input type="text" name="t1" id="t1" onkeyup="name_dis()"/>
    <input type="text" name="t2" id="t2" />

thankzz for the info dude ^^ ur the best....