views:

39

answers:

0

Hello,

i try to make two js in one Input, but only the Tooltip works.

<input type="password" style="background-color:#ffffff" size="10" name="pw" onfocus="doit()" tooltipText="test">

This is my doit function:

<script type="text/javascript">

function doit(){
document.getElementById('username').value="pcid1" + document.getElementById('serverid').value + "a";
}

</script>

Is there a way to make both in one input?

onfocus="doit()" tooltipText="test"