The following will return true if the element is an input:
$("#elementId").is("input")
or you can use the following to get the name of the tag:
$("#elementId").get(0).tagName
More Related Contents:
- Can I open a dropdownlist using jQuery
- Access-Control-Allow-Origin error sending a jQuery Post to Google API’s
- Getting jQuery to recognise .change() in IE
- jqGrid: Disable form fields when editing
- Get element -moz-transform:rotate value in jQuery
- Add comma to numbers every three digits
- Play/pause HTML 5 video using JQuery
- What is the easiest way to order a / in jQuery?
- Convert xml to string with jQuery
- ASP.net MVC 3 jQuery Validation; Disable Unobtrusive OnKeyUp?
- What are deferred objects?
- How to strip HTML tags with jQuery?
- Check if images are loaded?
- Show Div when scroll position
- Django JQuery Ajax File Upload
- File Upload via AJAX within JQuery
- Using an if statement to check if a div is empty
- JQuery sortable lists and fixed/locked items
- Opening tab with anchor link
- jQuery to serialize only elements within a div
- jQuery – get AJAX response headers
- Changing the action of a form with JavaScript/jQuery
- What do dot and hash symbols mean in JQuery?
- JQuery: detect change in input field [duplicate]
- How to prevent a double-click using jQuery?
- Display PNG image as response to jQuery AJAX request
- Is there any drawback to set ClientIDMode = Static on every object ( set on maincontent of master page)
- How to submit form without refreshing page using Django, Ajax, jQuery?
- JQuery Ajax is sending GET instead of POST
- How does jQuery .live() work?