title: how to change label color in javascript on submit button
body: <p>Hello Friend i have problem in my code,
  In this code i want when i press save button then 'Hello PHP' print and label color of FIRST NAME change but it's not work, when I put submit in button type then it's shows 'Hello PHP' and label color not change and when I button in button type then label color change but not print 'hello PHP', I want both on save button Click , Please Help me to Stuck out from this code</p>
  
  <p>This is my Code:</p>
  
  <pre><code>&lt;?php
  //php code 
  $isSaveDisabled=true;
  $isCreateDisabled=false;
  
  if(isset($_POST['save_button']))
  {
  echo 'Hello PHP';
  }
  
  if(isset($_POST['create_button']))
  {
  $isSaveDisabled=false;
  }
  ?&gt;
  // BootStrap Code
  &lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;
  &lt;title&gt;My New PHP CODE&lt;/title&gt;
  
  &lt;link rel="stylesheet" href="bootStrap/css/bootstrap.css"/&gt;
  &lt;link rel="stylesheet" href="bootStrap/css/bootstrap.min.css"/&gt;
  
  &lt;script type="text/javascript"&gt;
  function myFunction() {
  document.getElementById("myID").style.color = "#ff0000";
  }
  &lt;/script&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div class="container jumbotron text-center"&gt;
  
      &lt;form action="" method="POST" class="form-inline"&gt;
          &lt;div class="form-group"&gt;
              &lt;label for="fname" id="myID"&gt;FIRST NAME&lt;/label&gt;
              &lt;input type="text" name="fname" class="form-control" &gt;
               &lt;label for="nlame"&gt;LAST NAME&lt;/label&gt;
              &lt;input type="text" name="lname" class="form-control" &gt;
          &lt;/div&gt;
          &lt;br&gt;&lt;br&gt;
              &lt;div class="btn-group"&gt;
              &lt;button type="submit" name="save_button" onclick="myFunction();" &lt;?php echo $isSaveDisabled? 'disabled':'';?&gt;&gt;SAVE&lt;/button&gt;
               &lt;button type="submit" name="create_button" &lt;?php echo $isCreateDisabled? 'disabled':''?&gt; &gt;CREATE&lt;/button&gt;
  
          &lt;/div&gt;
      &lt;/form&gt;
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>