C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » JavaScript »

how to check textbox value is greate than 100 using javascript


Posted Date: 04 Jul 2008      Posted By: raju      Member Level: Gold     Points: 1   Responses: 3



how to check textbox value is greate than 100 using javascript




Responses

Author: Bharathi    04 Jul 2008Member Level: DiamondRating: 2 out of 52 out of 5     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 2008Member Level: GoldRating: 2 out of 52 out of 5     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 2008Member Level: GoldRating: 2 out of 52 out of 5     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>



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : How to take vertcal scrollbar to top
Previous : How to call the vbscript function from javascript
Return to Discussion Forum
Post New Message
Category: JavaScript

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use