C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




how to check textbox value is greate than 100 using javascript


Posted Date: 04 Jul 2008      Total Responses: 3

Posted By: raju       Member Level: Gold     Points: 1



how to check textbox value is greate than 100 using javascript




Responses

Author: Bharathi    04 Jul 2008Member Level: DiamondRating:     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: SilverRating:     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:     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
You must Sign In to post a response.
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   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use