Trying to accomplish a simple test for a project I'm working on.
The Form
<form id="agreement_text_form" action="" method="POST" onsubmit="updateAgreementText(); return false">
<textarea name="agreement_text" id="agreement_text"></textarea>
<input type="submit" value="Update Agreement Text" />
</form>
The textarea has a WYSIWYG added to it (not needed but just in case here is that function
var hb_silk_icon_set_blue = $("#agreement_text").css("height","240").css("width","695").htmlbox({
toolbars:[
["bold","italic","underline","strike","undo","redo","separator_dots","left","center","right","justify"]
],
icons:"silk",
skin:"blue"
});
</script>
I was able to get a border around the text area using this line:
$('#agreement_text_html').css('border','3px solid red');
But still not able to set a value with that selector (I've tried quite a bit as well).
Summarized
<form id="agreement_text_form" action="" method="POST" onsubmit="updateAgreementText(); return false">
<table id="agreement_text_wrap">
<tr>
<td id="agreement_text_container">
<iframe style="width: 695px; height: 240px;" id="agreement_text_html"></iframe>
<textarea name="agreement_text" id="agreement_text" style="height: 240px; width: 695px; display: none; "></textarea>
</td>
</tr>
</table>
<input type="hidden" id="employee_id" name="employee_id" value="1822">
<input type="hidden" id="action" name="action" value="update_agreement_text">
<input type="submit" value="Update Agreement Text">
</form>
Thank you for any help, I'm pretty familiar with PHP/JS/JQUERY/AJAX so any help may go a long way, I've already google everything I can think of. Thanks again