Wednesday 22 August 2012

How to embed getElementById in javascript

<script>
function  create_getElementById()
{
x=document.getElementById('first word').value;
y=document.getElementById('Second word').value;
alert(x+y)
}
</script>
<body>
<input type="text" id="txt1">
<input type="text" id="txt2">
<input type="button" value="click" onclick="create_getElementById()">
</body>






Share This
Previous Post
Next Post

FYJC XI standard online admisson Process and declaraton of Merit list . Cut off List For prevous year also . 10 Th Results onlne declaraton Maharashtra Region .

0 comments: