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
Kalyani Shevale
NA
3.2k
706k
how to get className value using id in jquery
Dec 6 2018 12:48 AM
I want class name value using id but input type is file.
<
input
type
=
'file'
id
=
"imgInp"
file
=
"file"
class
=
"@userSurvey.Id"
/>
jquery Code
$(
'input[type="file"]'
).change(
function
(e){
var
fileName = e.target.files[0].name;
$.each($(
'#imgInp'
)[i].files,
function
(i, file) {
fileData.append(
'file-'
+ i, e.target.files[i]);
});
alert(
'The file "'
+ fileName +
'" has been selected.'
);
});
how to get classname value
Reply
Answers (
1
)
How to get arraylist parameters with images using formData
location undefine when i convert lat&long to adderss format