問題:
In jQuery, if I have a reference to an element, how can I determine what kind of element it is, for example, an input or an dropdown? 在jQuery中,如果我有一個元素的引用,我如何確定它是什麼類型的元素,例如,輸入或下拉列表? Is there any way to find out? 有沒有辦法找出來?
Duplicate: 重複:
How can I determine the element type of a matched element in jQuery? 如何在jQuery中確定匹配元素的元素類型?
解決方案:
參考一: https://en.stackoom.com/question/2YH4參考二: https://stackoom.com/question/2YH4