title: How to pass text box value as argument in jquery function on click event
body: <p><strong>I want to get a value of text box on click as parameter</strong></p>
  
  <pre><code>&lt;input type="text" id="remark_mention" /&gt;
  </code></pre>
  
  <p>// link is here for click</p>
  
  <pre><code>&lt;a class="remark  "href="javascript:void(0);"style="text-decoration:none;color:#d90000;" id="st_mention&lt;?php echo strip_tags($row["pid"]); ?&gt;" onClick="mention_or_remmove_remarks('&lt;?php echo strip_tags($row["pid"]); ?&gt;','st_mention');"&gt; Mention&lt;/a&gt;
  </code></pre>
  
  <p><strong>My jquery function is follow</strong></p>
  
  <pre><code>function mention_or_remmove_remarks(mention_id, action){
      var dataString = "mention_id=" + mention_id + "&amp;action=mention_or_remmove_remarks";//ajax code here for post mention_update.php 
  }
  </code></pre>
  
  <p><strong>How I get a value of textbox in link Onclick event</strong></p>