Answers for "how to access value of ant design elements"

1

how to access value of ant design elements

<Form.Item label="Category">
  <Select 
    onChange={(value) => {
      alert(value)
    }} 
    name="category" 
    placeholder="Please select a category">
      <Option value="Fruit">Fruit</Option>
      <Option value="Vegetable">Vegetable</Option>
      <Option value="Poultry">Poultry</Option>
  </Select>
</Form.Item>
Posted by: Guest on April-05-2021

Code answers related to "how to access value of ant design elements"

Browse Popular Code Answers by Language