How to use one javascript function for multiple input fields?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More JavaScript Interview Questions

How to use external JavaScript file?

0 Answers  


What is scope variable in javascript?

0 Answers  


i want to display time using hidden variable in a page,but when i click button that page that hidden variable loosing its value.i m sending the code also. <script type="text/javascript" language="javascript"> var tick=0; window.onload = function() { //debugger if(document.getElementById("hdnTicker").value != "") tick = parseInt(document.getElementById("hdnTicker").value); setInterval("Timer()",1000); } function Timer() { //debugger document.getElementById("hdnTicker").value = tick++; //alert(document.getElementById("hdnTicker").value); document.getElementById("lblTimeSpent").innerHTML = "0." + tick; if(tick == 30) { //message or redirect to result window alert('time is out'); //clearTimeout(); } } </script> <form id="form1" runat="server"> <div> <table> <tr> <td> <asp:Label ID="lblTimeSpent" runat="server" Visible="true" ForeColor="Blue" ></asp:Label> </td> <td> <%-- <asp:textbox EnableViewState="true" id="hdnTicker" runat="Server" style="visibility:hidden"></asp:textbox>--%> </td> </tr> <tr> <td> <asp:Button ID="btn" runat="server" Text="hi" OnClick="btn_Click" Height="30px" Width="60px" /> </td> </tr> </table> <%--<asp:HiddenField ID="txt" runat="server" Visible="true" />--%> </div> </form> <input type="hidden" id="hdnTicker" name="hdnTicker" enableviewstate="true" runat="server" />

1 Answers  


Are there any training Institutions on iphone Automation testing?

0 Answers  


What are the javascript objects?

0 Answers  






Hi all, I got a job in Bangalore even though it's recession time. They have said my project will involve Java, Ruby on Rails, Ajax and they also said Web Services (which i have always wanted to try) and some stuff I have not much exposure like REST, mashups and Struts. Can anyone tell me if there are some good training or conferences to get to speed with these technologies. I need to do really good in my job. Thanks, Vaibhavi

1 Answers  


What is spread syntax?

0 Answers  


What is escape() function?

0 Answers  


Why is object naming important to use in javascript?

0 Answers  


List html dom mouse events?

0 Answers  


What is design pattern in javascript? Explain

0 Answers  


why jsp

0 Answers  


Categories