clearing the textbox input on button click
<p>i do have multiple text boxes called first name,last name,phone no and so on.. and i want to clear/refresh the input typed in it on button click called as refresh or clear.the problem is that the input in these text boxes are not getting refreshed because the data in it is coming from other page and it is getting refreshed when we type some thing in it
my code is as follows:</p>

<pre><code>&lt;div class="control-group"&gt;
        &lt;input value="&lt;?php echo $model['pros']['oppid'] ?&gt;" name="oppid" type="hidden" id="prospectid"  /&gt;
        &lt;label class="control-label"&gt;First Name  &lt;/label&gt;
        &lt;div class="controls"&gt;
            &lt;input type="text" name="f_name" pattern="[-a-zA-Z]+" required="" title="First Name is required" value="&lt;?php echo $model['pros']["f_name"]; ?&gt;"  /&gt;
        &lt;/div&gt;
    &lt;/div&gt;

    &lt;div class="control-group"&gt;
        &lt;label class="control-label"&gt;Last Name &lt;/label&gt;
        &lt;div class="controls"&gt;
            &lt;input type="text" name="l_name" pattern="[-a-zA-Z]+" required="" title="Last Name is required"  value="&lt;?php echo $model['pros']["l_name"];?&gt;"  /&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;div class="control-group"&gt;
        &lt;label class="control-label"&gt;Primary phone  &lt;/label&gt;
        &lt;div class="controls"&gt;
&lt;input type="tel" required="" pattern="[-0-9]+" title="Please Enter correct phone" name="pri_phone" value="&lt;?php echo $model['pros']["pri_phone"];?&gt;"  /&gt;
        &lt;/div&gt;
    &lt;/div&gt;
</code></pre>

<p>and the button as </p>

<pre><code>&lt;button class="btn"&gt;New&lt;/button&gt;
</code></pre>

<p>please suggest me on this...</p>
