My jQuery script creates a form. I need the form to appear just before the script :
<script type="text/javascript" src="..."></script>
//the form appears here...
This previous line will appear on various sites so I cannot insert/append.. it to an element $('element')... it would need to be : $('current script').prepend('...')
I would like users to be able to insert the script where they want the form to appear
How can I achieve this?
If I understand your question right…
where element is what you’re inserting.
http://api.jquery.com/attribute-equals-selector/
http://api.jquery.com/after/