I would like to be able to add some variable values to my html using the onclick jquery function:
For example:
<script>
$("#myid").click(function() {
variable myTitleVar = 'MyTitle';
//replace code here ... like appendto?
</script>
<div id="myid">Click here</div>
Stuff to be replaced:
<div id="title-container">{Value of myTitleVar Here}</div>
How can I do this?
If I’m understanding you correctly, you should just be able to do this: