Get value from input JQuery : I am trying to get the value from the first name input and pass it to the bootstrap alert when the user clicks the submit button, but can't manage to do that.
Here is my snippet:
<div id="myAlert" class="alert alert-success collapse">

<!-- begin snippet: js hide: false console: true babel: false -->

<!-- language: lang-js -->

    $(document).ready(function () {
      $("#submit-button").click(function () {
        $("#myAlert").show("fade"), $("#fname").attr("value");
        event.preventDefault();
      });
    });

<!-- language: lang-html -->

    <div id="myAlert" class="alert alert-success collapse">
      <a href="#" class="close" data-dismiss="alert">&times;</a>Thank you for contacting us, 
    </div>

<!-- end snippet -->

