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
Abhilash J A
535
2.4k
596.3k
How to set ajax result to javascript function parameter ?
May 1 2017 9:04 AM
I am working on mvc5 project. After save image on server, then I am dynamically binding its name with delete button. here is jquery code,
success:
function
(res) {
var
content =
'<div id="'
+ res.fileName +
'"><img id="'
+ res.imgId +
'" src="'
+ res.imgFullPath +
'" width="135" height="135"> <button onclick="return product.DeleteProImage("'
+ res.fileName +
'")">Delete</button> <input type="hidden" value="'
+ res.fileName +
'" name="img_'
+ res.id +
'"></div>'
;
}
Now dynamically binding div 'uploadedImages' looking below image.
But, now I am click on the delete button it is not executing 'product.DeleteProImage('imagename')' fuction. How can I solve this issue ?
Reply
Answers (
2
)
Countdown timer
Login page issue