title: How can do I enable onclick to clear an input field? Jquery
body: <pre><code>$('&lt;p&gt;&lt;input type="text" class = "class-'+ (++i)  +'" onclick="'(+ this.value = ''; +)'" value="Enter Choice #' + i + '"/&gt;&lt;/p&gt;')
  </code></pre>
  
  <p>I'm not sure if this is the correct syntax or not, but whatever I am using is not working. ANy help? Thanks</p>