| Author: Bharathi 04 Jul 2008 | Member Level: Diamond | Rating: Points: 4 |
this can be done using JavaScript as follows:
function TextboxValue() { var txt = document.getElementById('<Id of TextBox>'); if (txt.value > 100) { //Write the code here to perform some operation. } }
|
| Author: mohamed jamal 04 Jul 2008 | Member Level: Silver | Rating: Points: 0 |
this can be done using JavaScript as follows:
function TextboxValue() { var txt = document.getElementById('<Id of TextBox>'); if (txt.value > 100) { //Write the code here to perform some operation. } }
jam.txt |
| Author: Nithya 08 Jul 2008 | Member Level: Gold | Rating: Points: 6 |
hi...
you can create text box and the button and in button click event call the function and you can going to check if the value is greater than that value <html> <head> <title>Textbox > 100</title> <script language="Javascript" type="text/javascript"> function TextboxValue() { var txt = document.getElementById('txt1'); if (txt.value > 100) { document.write("Greater than 100"); } else { document.write("less than or equal to 100"); }
} </script> </head> <body> <input type=textbox id="txt1"> <input type=button value="click" onclick="TextboxValue()">
</body> </html>
|