I have the following HTML input boxes:
<form>
<input type="text" name="1" id="1" disabled>
<input type="text" name="2" id="2" disabled>
<input type="text" name="3" id="3" disabled>
<input type="text" name="4" id="4" disabled>
<input type="submit" name="submit" value="submit>
</form>
Next I am trying to use javascript to undisable all my input boxes upon a user clicking my div.
JavaScript:
<script>
$('#edit').click(function(){
$('input[]').prop('disabled', false);
});
</script>
Can someone please show me where I am going wrong, thanks
The error is the selector, try: