Reset button in filter select field

Reset button in filter select field

Neeraj1005Neeraj1005 Posts: 2Questions: 1Answers: 0

hello folks! I've one doubt I'm using the datatable select filter in my project but when I select the value I want a reset button to set into its default value. How can I do this can anyone suggest me?

Answers

  • kthorngrenkthorngren Posts: 20,275Questions: 26Answers: 4,765

    The specifics of what you need is dependent on what you have. Start with this SO thread that explains how to trigger a change when setting the select value. Doing this should invoke your change event used for the search.

    If you still need help please post a link to your page or a test case so we can offer suggestions based on your solution.
    https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case

    Kevin

  • Neeraj1005Neeraj1005 Posts: 2Questions: 1Answers: 0

    This is the link of my problem regarding the datatables. Please see this and let me know how to do this?
    https://stackoverflow.com/q/61975317/8455396

  • kthorngrenkthorngren Posts: 20,275Questions: 26Answers: 4,765

    The answer in your thread is similar to the answers in the thread I linked to. Place the code in your button's click event. If you need help then please provide a test case with what you have and what you tried so we can help.

    Kevin

This discussion has been closed.