<div id="address" class="col s12">
<div class="row">
<form method="post" action="" id="addressDetails">
<div class="input-field col s6">
<textarea id="lAddress" name = 'lAddress' minlength='20' maxlength='100' class="materialize-textarea" class="validate" required length="100"></textarea>
<label for="lAddress" data-error="Must be between 20 to 100 Characters">Local Address</label>
</div>
<div class="input-field col s6">
<textarea id="pAddress" name = 'pAddress' minlength='20' maxlength='100' class="materialize-textarea" class="validate" required length="100"></textarea>
<label for="pAddress" data-error="Must be between 20 to 100 Characters">Permanent Address</label>
</div>
</form>
</div>
<div class="row center-align">
<button type="submit" name="submitAddress" form="addressDetails" class="waves-effect waves-light light-blue darken-1 btn updateProfile">Save Address Details</button>
</div>
</div>
HTML und JavaScript-Codenach Ereignis in Funktion Event.preventDefault() über funktioniert nicht
$(document).ready(function() {
$("button").on('click', '.updateProfile', function(event) {
event.preventDefault();
});
});
Dies ist mein Javascript. Ich habe es vereinfacht, halte es kurz. Mein event.preventDefault()
funktioniert nicht.
Was meinen Sie mit "nicht funktioniert"? – nicael
reload die Seite. –
Was meinst du mit nicht arbeiten? –