I want to insert something into my form, which is somewhere hard coded into plugin and I didn\'t want to mess with the plugin files, so I\'ve found .append
You need the document ready handler -
<script>
jQuery(function() { // the document ready handler shorthand
jQuery('#edit-profile').append('<p>smth</p>');
});
</script>
Wrap it in dom ready.Because #edit-profile
should be there at the time of executing the script,
jQuery(document).ready(function(){
jQuery('#edit-profile').append('<p>smth</p>');
});