Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
4
Answers
calling second condition in content pages using onBlur event
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
Prasad Bhagat
10y
1.4k
1
Reply
Dear all ,
the onBlur event in content pages not working properly
please look at my code but
i have one question how to call second condition on that
its always printing only one value
function validate() {
debugger;
var txt1 = document.getElementById('<%= txtminsal.ClientID %>');
var txt2 = document.getElementById('<%= txtmaxsal.ClientID %>');
txt2 >txt1
alert("Max is should be greater than min");
return false;
}
<asp:TextBox ID="txtmaxsal" runat="server" onkeypress="return Validate(event);" onblur="javascript:validate();" ClientIDMode="Static" Font-Size="16px" TabIndex="13" CssClass="text" placeholder="Max Salary"></asp:TextBox>
please tell me the reson if my condition true then show the alert
if my condition is false i dont want to show the alert
Post
Reset
Cancel
Answers (
4
)
Next Recommended Forum
validate minmum and maximum salaries
textbox allowing only charecters and ("," coma,"" speace,+,-