title: Hyperledger Composer : Create Transaction using JQuery and HTML
body: <p>i am creating a front end for my example business network using html and jquery. Thus far i am able to create asset, search and delete asset using the front end.</p>
  
  <p>I am having trouble while creating a asset using a transaction.</p>
  
  <p>This is the business model file</p>
  
  <pre><code>namespace org.acme.chequebook
  
  asset Cheque identified by chequeNumber {
  
  o String chequeNumber
  
  }
  
  transaction CreateCheque{
  o String chequeNumber
  }
  </code></pre>
  
  <p>This is the script </p>
  
  <pre><code> $("#myChequeCreateButton").click(function(){
  
  
          var obj={
          "$class": "org.acme.chequebook.CreateCheque",
          "chequeNumber":$("#inputChequeNumber").val(),
          "transactionId":"",
          "timestamp":"",
          }    
          $.post('http://localhost:3000/api/CreateCheque',obj).done(function(res){
  
  
  
  
          }).fail(function(res){
  
  
  
  
          })
  
    })
  </code></pre>
  
  <p>I understand that <strong>transactionId</strong> and <strong>timestamp</strong> are assigned automatically at the time of transaction execution. So i am confused on how i should handle it here.</p>
  
  <p>When i try to submit this <strong>transaction</strong> it produces following error </p>
  
  <pre><code>jquery.min.js:2 POST http://localhost:3000/api/CreateCheque 422 (Unprocessable Entity)
  </code></pre>