Jsrender template form validation
===

I have a form which is a jsrender template 

     <script id="editTemplate" type="text/x-jsrender">
     <div>
      <form id="myEditForm"  method="POST" action="">
      <table>
      <tr>
        <td>
          Id:
         </td>
         <td>
		<input type="text" name="id" value="{{>id}}" class="required" />
         </td>
         </tr>
       <tr>
        <td>
	      Name:
	    </td>
        <td>  
		<input type="text" name="name" value="{{>name}}" class="required" />
        </td>
       </tr>
        <td>	
	   <input type="submit" value="submit" />
        </td>
       </tr>    
      </form>
  </div>
  </script>

I want to add bsvalidation to the input fields how can i do it??
