jQuery UI Widgets › Forums › General Discussions › Lists › DropDownList › uncheck checkbox with empty value
Tagged: DropDownList, filter, jqxDropDownList
This topic contains 4 replies, has 3 voices, and was last updated by AnkitLathiya 5 years, 4 months ago.
-
Author
-
Hi,
I am using drop down list with checkbox,
I have some null values in list, I checked that checkboxes but, in that when i click on button to filter according to checked items in list, i want to uncheck the check box having no value(null) automatically, please tell me the solution,
Thanks and Regards,
abcd
Hello abcd,
Please provide us with a code sample which to make the issue clearer.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/Hi Dimitar,
I used table(e.g Employee) from database, added one column(e.g phone_number) in drop down list, in that table some employees don’t have phone number so,that column value is empty, In drop down list all values with check box gets added,even for empty phone number value only check box is shown
On button click I want only those employees whose phone number is selected, but when i select check box which do not contains any value, i want that check box unselected automatically when i click on button.
Or is there any way to hide that check box?
Thank you,Hi abcd,
The methods checkIndex, uncheckIndex, checkItem, uncheckItem and the event checkChange may be helpful to you. You can learn more about them in jqxDropDownList’s API Documentation.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/Hello,
In JavaScript, the checked property sets or returns the checked state of a checkbox.
This property reflects the HTML checked attribute.
To check null in JavaScript, use triple equals operator(===) or Object.is() method. To find the difference between null and undefined, use the triple equality operator or Object.is() method.
The methods checkIndex, uncheckIndex, checkItem, unchecked and the event checkChange may be helpful to you. You can learn more about them in jqxDropDownList’s API Documentation.
Best Regards,
-
AuthorPosts
You must be logged in to reply to this topic.