I have a website and want to consol log all input data from my form. I don't want the…
- User
I have a website and want to consol log all input data from my form. I don't want the page to refresh on submit. Create JS code that does that:
code<div class="mb-3"> <label for="exampleInputEmail1" class="form-label">Nazwa firmy</label> <input type="text" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp"> </div> <div class="mb-3"> <label for="exampleInputEmail1" class="form-label">NIP</label> <input type="number" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp"> </div> <div class="mb-3"> <label for="exampleInputEmail1" class="form-label">Miasto</label> <input type="text" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp"> </div> <div class="mb-3"> <label for="exampleInputEmail1" class="form-label">Ulica</label> <input type="text" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp"> </div> <div class="mb-3"> <label for="exampleInputEmail1" class="form-label">Numer domu</label> <input type="number" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp"> </div> <div class="mb-3"> <label for="exampleInputEmail1" class="form-label">Numer mieszkania</label> <input type="number" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp"> </div> <div class="mb-3"> <label for="exampleInputEmail1" class="form-label">Kod pocztowy</label> <input type="number" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp"> </div> <div class="mb-3"> <label for="exampleInputEmail1" class="form-label">Uwagi</label> <input type="text" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp"> </div> <select class="form-select" aria-label="Default select example"> <option selected>Open this select menu</option> <option value="1">IT</option> <option value="2">Handel</option> <option value="3">Transport</option> </select> <div class="mb-3 form-check"> <input type="checkbox" class="form-check-input" id="exampleCheck1"> <label class="form-check-label" for="exampleCheck1">Aktywny</label> </div> <button type="submit" class="btn btn-primary">Submit</button> </form> - Assistant
- User
How do I add support for the polish language
- Assistant
To add support for the Polish language on your website, you should make sure the content is displayed in Polish and the HTML document is correctly set up to handle Polish characters. Here are some steps to ensure proper Polish language support:
-
Define the Language in HTML: Make sure the
langattribute on the<html>tag is set to Polish. You already have this in your code, which is great:
-
- User
Ok can you add a clear button that clears the form to my form and a second button that pastes hardcoded data to my form from a js function
- Assistant