I had the html like below

```
<input id="id_wow" placeholder="0.0" type="text" name="{{state.0}}" value="{{tax_value}}" class="must_be_float">
<br><span class="id_wow">hrray</span>

```

so when a user enters a value in input field other than float, i should fill this span text with `"It must be float"`, but my jquery code is not working

**jquery code**

```
  $('.must_be_float').focusout(function() {
       var class =  $('.must_be_float').attr('id');
       var value = $('.must_be_float').val();
       if (value)
         {
          float_or_not = parseFloat(value);
          if(isNaN(float_or_not))
             {
              $('span.class').html('Value must be float');
             }
         }  
  });  

```