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
Dr.Ajay Kashyap
NA
521
285k
How to Validate Image Height and Width Using Javascript.
Dec 13 2016 6:18 AM
Hello..
How to Validate Image Height and Width Using Javascript. In MVC I want Height And Width Not Less Then 1000.
Height=1000.
Width=1000.
Given Below Is mY Code:-
<script>
$("#BannerPic").change(function () {
debugger;
var height = this.height;
var width = this.width;
if (height > 1000 || width > 1000) {
alert("Height and Width must not exceed 100px.");
return false;
}
return true;
});
</script>
Reply
Answers (
3
)
MVC WebSecurity.CreateUserAndAccount Membership.Provider err
how to iterate the object and print the property and valu