I have to clear selectize input after submit, but it gives me this error message: Cannot read property 'clear' of undefined This is what I have so far: GET $_POST value, nothing is wrong with this. <?php $autoclear = "0"; if (isset($_POST['autoClear']))$autoclear = $_POST['autoClear']; ?> My HTML Form, also nothing wrong with this. <form method="post" action=""> <input type="checkbox" id="autoClear" name="autoClear" value="1" <?php if ($autoclear == '1') echo 'checked'; ?>> <select id="client" name="client" class="client selectize" > <option> ... ... </option> </select> <!-- OTHER INPUTS, IRRELEVANT --> <input type="submit" name="submitBtn" id="submitBtn" class="submitBtn btn-info" value="Submit...
A site where you can share knowledge