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
Hadeel e
NA
50
6.7k
readURL with JOuery
Mar 30 2020 12:07 PM
Hi,
I am trying to allowing the end user to edit and see the images that have been edited using jOuery.
However, I am geetting no such changes.
the following is my code:
<script type=
"text/javascript"
>
$.noConflict();
function
readURL(input) {
var
reader =
new
FileReader();
if
(input.files && input.files[0]) {
reader.onload =
function
(e) {
jQuery(
'#proImg'
).attr(
'src'
, e.target.result);
}
reader.readAsDataURL(input.files[0]);
}
else
if
(input.files && input.files[1]) {
reader.onload =
function
(w) {
jQuery(
'#licImg'
).attr(
'src'
, w.target.result);
}
reader.readAsDataURL(input.files[1]);
}
}
jQuery(
'#profileImg, #licenseImg'
).change(
function
() {
jQuery(
'#profileImg'
).readURL();
jQuery(
'#licenseImg'
).readURL();
});
</script>
Thank you.
Reply
Answers (
1
)
Numeric value in inputbox.
Unable to fetch the selected filtered records in kendo