jQuery slider hide

jQuery slider hide

Hello all 

I have got a slider working in an ASPnet MVC application. I need to show and hide the slider when the user clicks into the field. am struggling to get this part working.

What I have is 
  1. <script type="text/javascript">

  2.             $(function () {
  3.             $("#SundaySlider").slider({

  4.                 range: "max",
  5.                 min: 1,
  6.                 max: 10,
  7.                 value: 2,
  8.                 slide: function (event, ui) {
  9.                     $("#SundayHours").val(ui.value);
  10.                 }
  11.             });
  12.             });
  13. </script>
And then in my MVC form using Razor syntax 

  1.   <div class="form-group">
  2.             @Html.LabelFor(model => model.SundayHours, htmlAttributes: new { @class = "control-label col-md-2" })
  3.             <div class="col-md-10">
  4.                 @Html.TextBoxFor(model => model.SundayHours, new { htmlAttributes = new { @class = "form-control" } })
  5.                 @Html.ValidationMessageFor(model => model.SundayHours, "", new { @class = "text-danger" })               
  6.                <br /><br />
  7.                  <div id="SundaySlider" style="width:200px"></div>
  8.             </div>
  9.             
  10.         </div>
This gives me a slider below the box but I only want the slider to display when the user clicks into the box.

Hopefully this makes sense 

Thanks for reading 

Cheers