Hello! A problem such as passing the value of a checkbox if it is a value with a space:
An example I need to get images word , and I get the images below
$(document).ready(function() { $("button#renameSubmit").bind("click", function show() { var pathUpload = $('input[type="checkbox"]:checked').val(); alert(pathUpload); }); });<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <form> <input type="checkbox" id="pathUpload" name="pathUpload[]" value="images"> <span class="text-folder">images word</span> <br/> <button type="button" id="renameSubmit" value="1">отправить</button> </form>