i write me jquery script in html page like this:
<script> function pofileEditable(){
var pFormEditable = $('#profi-form input');
$('#pBtnSave').removeAttr('disabled', '');
$('#pBtnEdit').attr('disabled', 'disabled');
$('#prof-form-anrede').removeAttr('disabled', '');
} </script>
How can I write it in separate file ex like that test.js
and import it?
<script type="text/javascript" src="js/test.js"></script>
I don't wont to use javascript method
var edit = document.getElementById("pBtnEdit");