title: How to add fontawesome spinner inside onclick?
body: <p>So I have this code inside my php echo;</p>
  
  <p><code>&lt;input type="submit" value="Send Love" class="btn btn-primary" onclick="this.form.submit(); this.disabled=true; this.value=\'Sending Love…\';" /&gt;</code></p>
  
  <p>As you can see the text will change onclick and the button will be disabled and the form will be submitted. But what i'm trying to do is add a fontawesome spinner besides Sending so the button will have a spinner when its being submitted. I tried adding it but it doesn't show up and it breaks the output of the code; I also tried using <code>'\'\</code> like with the Sending but it still doesn't show up and the onclick functions are broken.</p>
  
  <p><code>&lt;input type="submit" value="Send Love" class="btn btn-primary" onclick="this.form.submit(); this.disabled=true; this.value=\'&lt;i class="fa fa-spinner fa-spin"&gt;&lt;/i&gt; Sending Love…\';" /&gt;</code></p>
  
  <p>So anyone could help me fix this thing? Really want to add that spinner. Thanks in advance!</p>