Please note that I am completly new to this and that I am not a developer :)
I am writing a user macro which enables me to insert elements from different pages (as long as they are within a div). The concept is working however the issue occurs when I try to insert the same macro multiple times.
Instead of adding it x number time it just overrides :(.
"Code" below
-----------------------------
<script>
$(document).ready(function(){
var page_url = "$paramPageURL"
var divIdentifier = " #"+"$paramDIVID"
$(divIdentifier).load(page_url + divIdentifier);
});
</script>
<div id = "$paramDIVID"></div>
-----------------------------
I don't understand why I cannot just add multiple elements especially when my div id is unique per insert.
Many thanks for your help
Asking the question helps to solve the issue :) here is what I did to make it work:
<script>
$(document).ready(function(){
var page_url = "$paramPageURL"
var divIdentifier = " #"+"$paramDIVID"
$(divIdentifier).load(page_url + divIdentifier);
});
</script>
<div>
<div id = "$paramDIVID"></div>
</div>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.