Shell form does not validate
<p>Why in this code after click on button get error: <a href="http://jsfiddle.net/FyUgH/" rel="nofollow">http://jsfiddle.net/FyUgH/</a></p>

<blockquote>
  <p>{"error": "Shell form does not validate{'html_initial_name':
  u'initial-js_lib', 'form': , 'html_name': 'js_lib', 'label': u'Js lib', 'field':
  ,
  'help_text': '', 'name': 'js_lib'}"}</p>
</blockquote>

<pre><code>&lt;form action="#" method="POST"&gt;
    &lt;input type="text" name="name"&gt;
    &lt;button id="cli"&gt;Submit&lt;/button&gt;
&lt;/form&gt;


$('#cli').live('click',function(e){
        e.preventDefault();
    alert('oo')
        if($('input[type="text"]').val()=='')alert('input is empty')
    })
});
</code></pre>
