tomlee9876

L06_TODO_2

Oct 24th, 2025
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JavaScript 0.33 KB | Source Code | 0 0
  1. <div>
  2.   <span>Brand Name : </span>
  3.  
  4.   <select
  5.     value={form.brand}
  6.     onChange={(e) => setForm({ ...form, brand: e.target.value })}
  7.     className="p-2 border rounded"
  8.     required
  9.   >
  10.     <option value="">Select brand</option>
  11.  
  12.     {brands.map((n) => (
  13.       <option key={n}>{n}</option>
  14.     ))}
  15.   </select>
  16. </div>
  17.  
Advertisement
Add Comment
Please, Sign In to add comment