EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: rezzonico on August 22, 2018, 02:57:51 AM



Title: Check if a form exist
Post by: rezzonico on August 22, 2018, 02:57:51 AM
Hi all,

in order to check if a datagrid exists I use the following working code:

Code:
if ($('#dg').data('datagrid')) {
    console.log('datagrid exists');
}

How can I check if a form exists ?

Thanks
Miche


Title: Re: Check if a form exist
Post by: jarry on August 22, 2018, 06:46:21 AM
Try this code:
Code:
if ($('#ff').length){
  //exists
}


Title: Re: Check if a form exist
Post by: rezzonico on August 22, 2018, 08:47:50 AM
Thanks !

Miche