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
Smile
1.5k
202
37k
alertify is not waiting for confirmation in a check box
Jun 11 2019 5:37 AM
I am having a check box.when its checked i need to show a alertify.confirm box that same value is selected.If yes is selected check box should be selected and on cancel the check box should be deselected.but the code is exceuting before confiramtion from the user]
var Chksel= '<input type="checkbox" value="' + row[i].Id+ '" name="ChkValue" class="ChkValue" id="ChkValue" + i + '" checked/>'
alertify.confirm("Same value has been selected.Do you want to select again ?", function (e) {
if (e) {
Event.preventDefault();
saveflag =false;
return true;
}
else {
$('#Chksel' + ID).prop('checked', false);
saveflag = true;
return false;
}
})
if (saveflag != true) {
//save function
}
Reply
Answers (
1
)
Dropdownlist select item text overflow outside and icon set
Not Able to consume web api (hosted in https) from mvc