Okay, try as I might, I just don’t have that solid of a hold on the HTML DOM for what I need. For what I’m working on, I need to dynamically create two elements, one with an onclick event and another with an ID. Not in itself an issue. But it has to do with placement. I have a form:
<form action=”script.php” method=”post” id=”massCard”>
<fieldset>
<legend>Create a Mass Card</legend>
<label>Your Full Name <input type=”text” name=”name”></label>
<label>Who The Intention Is For <input type=”text” name=”intendant”></label>
<label>Your Small Prayer <textarea rows=”10″ cols=”30″ name=”prayer”></textarea></label>
<input type=”submit” name=”submit” value=”Create Card” alt=”Create Card”>
</fieldset>
</form>
Okay, so now I have a javascript function, of which on its call creates a button at the very end of the fieldset, after the textarea. And immediately after the form, creates a <div> element with an ID. So is this possible, and if so, how might I go about this?