Jquery Validation & number field with comma In my form i have this element :

   $form['poidsMin'] = array(
        '#type' =&gt; 'number',
        '#title' =&gt; $this-&gt;t('Poids minimum en gramme'),
        '#default_value' =&gt; $frais_port_entity-&gt;get('poidsMin'),
        '#description' =&gt; $this-&gt;t("Poids minimum du produit"),
        '#required' =&gt; TRUE,
    );


When i put 10 or 20, all is good but if i put 10.3 or 10,3 drupal 8 jquery validate tell me to insert a value like 10 or 11 with no comma.

My field in mysql is a float, how can i disable this validation for number type field ?
Browser support may vary, but essentially you want to add an attribute of step="any":

$form['poidsMin'] = array(
    '#type' =&gt; 'number',
    '#title' =&gt; $this-&gt;t('Poids minimum en gramme'),
    '#default_value' =&gt; $frais_port_entity-&gt;get('poidsMin'),
    '#description' =&gt; $this-&gt;t("Poids minimum du produit"),
    '#required' =&gt; TRUE,
    '#attributes' =&gt; ['step' =&gt; 'any'],
);