Alright, I'm at the end of my sanity and I'm trying to figure out where to begin. Basically what I need to do is be able to take inputs from a form and output them in a string.
So, if I have a form that's like:
<body>
<section id="sidebar">
<input type="button" id="new_button" value="Add Task">
<ul id="todo_tasks">
</ul>
<ul id="completed_tasks">
</ul>
</section>
<section id="main">
<form>
<ol>
<li>
<input type="submit" id="save_button" value="Save" onsubmit="AddItem()"/>
</li>
<li>
<label for="title">Title</label>
<input type="text" id="title" required pattern="[a-zA-Z ]+" />
</li>
<li>
<label for="note">Note</label>
<textarea id="note" required pattern="^[a-zA-Z][a-zA-Z0-9-_\.]{5,12}$" ></textarea>
</li>
<li>
<label for="priority">Priority</label>
<select name="priority">
<option value="high">High</option>
<option value="low">Low</option>
</select>
</li>
<li>
<input type="radio" name="complete" id="complete" value="todo" checked="checked" />
<label for="todo">To Do</label>
<input type="radio" name="complete" id="complete" value="completed" />
<label for="complete">Complete</label>
</li>
</ol>
</form>
</section>
</body>
However, I haven't really used JavaScript in almost a year and I've forgotten a lot of the commands and syntax.
In short, I'm not sure if I'm able to have a function where it basically says:
document.write("Title" + "Note" + "Priority") and then post it into todo_tasks or completed_tasks based on what radio input is selected when the user clicks the Save button.
I know how to do this with HTML5 localstorage, but I need to be able to do this on IE, and I'm not even sure where to begin with it.
As for JavaScript, what I have is just the functions I -think- I'll need, but I don't know where to begin with what I need to have in the brackets to make them work.
function newItem(){
}
function completeItem(){
document.getElementbyId("complete")
if (value=="completed") {
document.write("");
} else {
document.write("");
}
function onClick(){
}
function editItem(){
}
Any help, direction, advice, or links are greatly appreciated.
(Yes, I know this looks like a train wreck)