How to get "this" form content by name?
<p>In the following example I get <code>title</code> from <code>this</code> form using html <code>id=title</code>.</p>

<p>How do I do the same, but instead of using ID then using name?</p>

<pre><code>$(document).ready(function(){

    $('form').live('submit', function(){

    var aform = $('form[name="create_form"]');

    // get the entire form
    var form = $(this);

    // get form title field by ID
    var title = this.elements.title.value;

    // get selected radio button using name instead if ID
    var type = $(this).find('input:radio[name="ctype"]:checked').val() || '';

    alert(title);
</code></pre>

<p>In the case of the radio button, is it gotten by name, but I can't figure out how to translate that syntax to a normal form field of</p>

<pre><code>&lt;input name="title" id="55544_title" type="text" /&gt;
</code></pre>
