Search
 
SCRIPT & CODE EXAMPLE
 

HTML

html multiple checkbox list

<form method="post" action="/Tests/Post/">         
  <fieldset>              
    <legend>What is Your Favorite Pet?</legend>             
    <input type="checkbox" name="favorite_pet" value="Cats">Cats<br>             
    <input type="checkbox" name="favorite_pet" value="Dogs">Dogs<br>             
    <input type="checkbox" name="favorite_pet" value="Birds">Birds<br>             
    <br>              
    <input type="submit" value="Submit now" />          
  </fieldset>      
</form>
Comment

checkbox multiple select

 const [multipleName, setMultipleName] = useState<string[]>([]);
 const [ownerid, setOwnerId] = useState(" ");  
const storeMultiName = (name: any, ownerid: any) => {
    setOwnerId(ownerid);
    let statusExist = false;
    multipleName?.find((val) => {
      if (val === name) {
        statusExist = true;
      }
    });
    if (statusExist) {
      const a = [...multipleName];
      const b = a.filter((val) => val !== name);
      setMultipleName(b);
    } else {
      const a = [...multipleName];
      a.push(name);
      setMultipleName(a);
    }
  };
Comment

PREVIOUS NEXT
Code Example
Html :: down chevron unicode 
Html :: how to summon an entity with a tag 
Html :: svg xlink 
Html :: multiple ternary in vuejs 
Html :: href mailto 
Html :: corner radius edittext android 
Html :: html code example 
Html :: laravel route sub domain routing 
Html :: how to download folder using scp 
Html :: Responsive container centered 
Html :: how to create accordion effect using built-in HTML tags? 
Html :: bootstrap 3 form template 
Html :: fa icon facebook 
Html :: thymeleaf input radio checked 
Html :: bootstrap 4 
Html :: inspect google remote device disable screencast 
Html :: Translate html in magento 2 
Html :: how to make a div in html 
Html :: fixed footer button css 
Html :: working search bar html 
Html :: convert html to string python 
Html :: html meter change color 
Html :: city of hamilton 
Html :: tailwind input 
Html :: corona cases in pakistan 
Html :: open link as a number 
Html :: button display text html 
Html :: iframe youtube playlist not working html 
Html :: html writing shortcuts 
Html :: bootstrap alert 
ADD CONTENT
Topic
Content
Source link
Name
5+2 =