Hi. I'm using this plugin: http://code.google.com/p/lwrte/ for a
lightweight text editor. I want to be able to submit without a page
reload and I can't seem to figure out how to override whatever code
the author created to disable the value of the text area field unless
the form is formally submitted using the submit button. Additionally I
don't seem to be able to attach any events to the submit button. I'm
not sure you will be able to help me but thought it's worth a shot.
Here's the form:
<form method="post" action="../postingfiles/tasks-main.php">
        <input name="id" value="" id="id" type="hidden"/>
    <input type="text" value="Untitled" id="title" name="title" />
    <a href="#" id="save">Save</a>
    <textarea name="notes"  id="notes" class="rte1" >
        </textarea>
    <input type="submit" value="click" id="submit" />
</form>
Here's my code which returns "id=&title=untitled".
$(document).ready(function() {
   $('#save').click(function($e) {
            $e.preventDefault();


      var str = $("form").serialize();
      alert(str);
    });
});

If you have any idea how someone would disable the textarea unless
formally submitted maybe I can go searching for that type of thing in
the js file. Or if you know of a better text editor I should check out
that would be great too. I liked this one because it seemed fairly
simple and not too ugly.

Reply via email to