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
Sourabh Dhiman
NA
323
57.6k
sequential using jquery ?
Oct 10 2019 6:43 AM
var
d1 = $.Deferred();
var
d2 = $.Deferred();
$.when( d1, d2 ).done(
function
( v1, v2 ) {
console.log( v1 );
// "Fish"
console.log( v2 );
// "Pizza"
});
d1.resolve(
"Fish"
);
d2.resolve(
"Pizza"
);
Please check this code . Its run.
var
d1 = $.Deferred();
var
d2 = $.Deferred();
$.when( d1, d2 ).done(
function
( v1, v2 ) {
console.log( v2 );
// "Pizza"
console.log( v1 );
// "Fish"
});
d1.resolve(
"Fish"
);
d2.resolve(
"Pizza"
);
I will change console.log(v1); My output pizaa , fish
But i want to output same , for eg -fish and pizaa . How it's possible. Please solve this
Reply
Answers (
2
)
Cookie Consent ?
Instagram feed with ifarme