Read this tutorial and learn the two methods of getting the width and height of the image. Learn about the properties that help to get the image size.
Read this tutorial and learn the right ways of getting the data-id attribute using jQuery two methods. Also, learn more information about the two methods.
Read this tutorial and learn about several methods of getting the value of the input textbox value without wrapping the input element inside a form element.