jQuery gets the summary of element tag name (with code)
The code is as follows:
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http:///TR/html4/"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Insert title here</title> <script type="text/javascript" src="/jquery/1.12.2/"></script> </head> <body> <img style="width: 120px;height: 120px;" alt="" src=""> <script type="text/javascript"> ($('#myImg').prop('nodeName')); </script> </body> </html>
The above is the entire content of this article. I hope the content of this article will be of some help to everyone’s study or work. If you have any questions, you can leave a message to communicate. Thank you for your support!
Related Articles
Simple example of jquery implementing input box to get focus
Below, the editor will bring you a simple example of jquery implementing input box to get focus. The editor thinks it is quite good, so I will share it with you now and give you a reference. Let's take a look with the editor2017-01-01jQuery realizes the effect of side floating navigation menu
This article mainly introduces jQuery to realize the effect of side floating navigation menu. Friends who need it can refer to it.2014-12-12Implement simple folding menu effect based on jQuery
This article mainly introduces the simple folding menu effect based on JQuery. This function is very simple to implement. Friends who need it can refer to it.2015-11-11jquery implements multi-line text picture scrolling effect sample code
There are many ways to implement the scrolling effect of multi-line text and picture. This example shares with you the specific steps of jquery implementation, which is very practical.2014-10-10jQuery animation special effects tutorial
This article mainly introduces jQuery animation special effects and describes the implementation method of jQuery animation special effects in detail. It is very practical. Friends who need it can refer to it.2014-08-08jQuery-based input input box drop-down prompt layer (automatic mailbox suffix name)
The jQuery-based input input box pull-down prompt layer is convenient for users to enter the prompt information when entering the email address. Friends who need it can refer to it.2012-06-06Examples explain the chain programming style of jQuery
The chain operation in jQuery makes the code more layered and concise, so this article mainly introduces relevant information about the jQuery chain programming style. Friends who need it can refer to it.2021-06-06jQuery+jqmodal pop-up window implementation code distinct
How to create a jQuery+jqmodal pop-up window, friends who need it can refer to it.2010-06-06Jquery Ajax Learning Example 3 Send a request to the WebService and call the method to return data
Jquery Ajax Learning Example 3 Send a request to the WebService and call the method to return data2010-03-03LazyForm jQuery plugin Customize your CheckBox Radio and Select
LazyForm jQuery plugin Customize your CheckBox Radio and Select, friends who need it can refer to it.2009-10-10