EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: rolandodt on July 15, 2019, 08:15:20 AM



Title: How know type of component
Post by: rolandodt 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


Title: Re: How know type of component
Post by: jahangir on July 16, 2019, 03:56:39 AM
You can determine it by getting class name.

Code:
var mytype =  $('#myid').attr('class')