EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
September 14, 2025, 03:01:28 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
Check if a form exist
Pages: [
1
]
« previous
next »
Print
Author
Topic: Check if a form exist (Read 6827 times)
rezzonico
Full Member
Posts: 186
Check if a form exist
«
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
Logged
jarry
Administrator
Hero Member
Posts: 2298
Re: Check if a form exist
«
Reply #1 on:
August 22, 2018, 06:46:21 AM »
Try this code:
Code:
if ($('#ff').length){
//exists
}
Logged
rezzonico
Full Member
Posts: 186
Re: Check if a form exist
«
Reply #2 on:
August 22, 2018, 08:47:50 AM »
Thanks !
Miche
«
Last Edit: August 22, 2018, 08:49:25 AM by rezzonico
»
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...