EasyUI Forum
November 30, 2025, 01:06:58 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How know type of component  (Read 6902 times)
rolandodt
Newbie
*
Posts: 1


View Profile Email
« on: July 15, 2019, 08:15:20 AM »

Hi.

I would like to know if there is a way to know the type of component from the ID.

Thanks
Logged
jahangir
Jr. Member
**
Posts: 51



View Profile Email
« Reply #1 on: July 16, 2019, 03:56:39 AM »

You can determine it by getting class name.

Code:
var mytype =  $('#myid').attr('class')
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!