title: Uncaught Error: Syntax error, unrecognized expression: #[object HTMLDivElement]
body: <p>I'm passing a value to codeigniter function for getting a result.
  But the ajax value does not pass to the php function.</p>
  
  <p>My script function follows :</p>
  
  <pre><code>&lt;script src="http://code.jquery.com/jquery-1.11.1.min.js"&gt;&lt;/script&gt;
  &lt;Script&gt;
  $(document).ready(function() {
  $("#up").on('click',function(){
        if ($("#incdec").val() &lt; $(this).data("max")) {
          $("#incdec").val(parseInt($("#incdec").val())+1);
          }
  });
  
  $("#down").on('click',function(){
        if ($("#incdec").val() &gt; $(this).data("min")) {
          $("#incdec").val(parseInt($("#incdec").val())-1);
        }
   });
   });
   $(document).ready(function() {
    $(".butt").on('click',function(){
      var e=$(".aa").val();
      alert(e);
  
      $.ajax({
           type:"POST",
           data:"id="+e,
           url:"&lt;?php echo site_url('pages/getit');?&gt;",
           success: function(html){
                $('#'+dataprocess).html(html);
           }
      });
    });
  });
  
  &lt;/script&gt;
  </code></pre>
  
  <p>My HTML code :</p>
  
  <pre><code>&lt;input type="text" name="incdec" id="incdec" value="0" class="aa"/&gt;
  &lt;input type="button" class="butt"  id="up" value="Up" data-max="5" /&gt;
  &lt;input type="button" id="down" value="Down" data-min="0" class="butt"/&gt;
  
  &lt;div id="dataprocess"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>But I'm getting an error as follows:</p>
  
  <p><code>Uncaught Error: Syntax error, unrecognized expression: #[object HTMLDivElement]</code></p>
  
  <p>Please help me find my mistake.</p>