title: how to get the value of a radio button in blazor?
body: <p>hello community I have a problem how can I get the value of a <code>radio button</code> in <code>blazor</code>, I have three radio buttons in the first two I want to put a value number <code>0</code> and <code>16</code> to save them in the database and in the third button a <code>bool</code> value to show some input if that value was selected,but the truth is I don't know how to do this since I understand that in blazor you can't even put the bidirectional values with <code>bind-value</code></p>
  <p>this is my code:</p>
  <pre><code> &lt;div class=&quot;form-group col-md-2&quot;&gt;
      &lt;label&gt;Impuestos&lt;/label&gt;
      &lt;div&gt;
          &lt;div class=&quot;form-check form-check-inline&quot;&gt;
              &lt;input class=&quot;form-check-input&quot; type=&quot;radio&quot; name=&quot;inlineRadioOptions&quot; id=&quot;inlineRadio1&quot; @bind-value=&quot;@ImpuestoDetalle.Tasa&quot;&gt;
              &lt;label class=&quot;form-check-label&quot; for=&quot;inlineRadio1&quot;&gt;0%&lt;/label&gt;
          &lt;/div&gt;
          &lt;div class=&quot;form-check form-check-inline&quot;&gt;
              &lt;input class=&quot;form-check-input&quot; type=&quot;radio&quot; name=&quot;inlineRadioOptions&quot; id=&quot;inlineRadio2&quot; @bind-value=&quot;@ImpuestoDetalle.Tasa&quot;&gt;
              &lt;label class=&quot;form-check-label&quot; for=&quot;inlineRadio2&quot;&gt;16%&lt;/label&gt;
          &lt;/div&gt;
          &lt;div class=&quot;form-check form-check-inline&quot;&gt;
              &lt;input class=&quot;form-check-input&quot; type=&quot;radio&quot; name=&quot;inlineRadioOptions&quot; id=&quot;inlineRadio3&quot; @bind=&quot;@Perzonalizado&quot;&gt;
              &lt;label class=&quot;form-check-label&quot; for=&quot;inlineRadio3&quot;&gt;Perzonalizado&lt;/label&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  
  
  
  
   @if (Perzonalizado)
     {
       &lt;div class=&quot;form-group col-md-2&quot;&gt;
         &lt;label&gt;Tasa&lt;/label&gt;
       &lt;div&gt;
       &lt;input type=&quot;number&quot; class=&quot;form-control&quot; @bind-value=&quot;@ImpuestoDetalle.Tasa&quot; /&gt;
       &lt;/div&gt;
       &lt;/div&gt;
      }
  
  
  @code {
      private Impuesto Impuesto = new Impuesto();
      private ImpuestoDetalle ImpuestoDetalle = new ImpuestoDetalle();
  
      private Boolean Perzonalizado = false;
  }
  </code></pre>