jQWidgets Forums

jQuery UI Widgets Forums Lists DropDownList uncheck checkbox with empty value

This topic contains 4 replies, has 3 voices, and was last updated by  AnkitLathiya 4 years, 8 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • uncheck checkbox with empty value #18774

    abc
    Participant

    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

    uncheck checkbox with empty value #18787

    Dimitar
    Participant

    Hello abcd,

    Please provide us with a code sample which to make the issue clearer.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    uncheck checkbox with empty value #18815

    abc
    Participant

    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,

    uncheck checkbox with empty value #18823

    Dimitar
    Participant

    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,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    uncheck checkbox with empty value #112704

    AnkitLathiya
    Participant

    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,

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.