TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
krishna angirekula
NA
68
29.9k
in my site javascript function is not calling ?
May 25 2013 12:25 AM
function save()
{
//int count=0;
var txt1 = document.getElementById('txtEmpFName').value; // textbox 1 ID is txt1
var txt2 = document.getElementById('txtEmpmiName').value;
var txt3 = document.getElementById('txtEmpDtofInterview').value;
var txt4 = document.getElementById('txtEmpDtofJoining').value;
if (txt1 == "0")
{
count = count + 1;
alert("plz fill the employe's First name!!");
return true;
}
if (txt2 == "0") {
count = count + 1;
alert("plz fill the employe's middle name!!");
return true;
}
if(txt3 =="0")
{
count = count + 1;
alert("plz fill the employe's Date Of interview name!!");
return true;
}
if(txt4=="0")
{
count = count + 1;
alert("plz fill the employe's Date of joini name!!");
return true;
}
if (confirm('Do You Want to Add Record') == true)
return true;
else
return false;
}
<asp:Button ID="btnadd" runat="server" class="btn save" Text="New"
onclick="btnadd_Click" OnClientClick="save();" style="height: 26px" />
i use this code also
<asp:Button ID="btnadd" runat="server" class="btn save" Text="New"
onclick="btnadd_Click" OnClientClick=" return save();" style="height: 26px" />
it not calling function .........
pls help meeeeeeeeeee
Reply
Answers (
4
)
ASP.NET GRIDVIEW
Get the IP address of the current system