Category "forms"

required attribute not working with primeng <p-dropdown>

I am working on a angular2 App and I am using primeng for UI elements. I have dropdowns where I am using the options in these dropdowns are dynamically generat

How to differentiate between JavaScript submit and manual submit (for forms I don't own)

My question is almost the same as this one. But I have to ask the question again because I can not accept the answer that the OP there has seem to accept. I l

Show Validation Message on submit in Angular 4 Reactive Forms

I am using Angular 4, Reactive forms.I want to show validation error message when the user clicks on Submit/Create Account button. Here is the HTML and typescr

Why does the form submit event fire when I have stopped propagation at the submit button level?

HTML <form> <input type='text'> <button type='submit'>Submit</button> </form> JavaScript $('form').on('submit', functi

How do I trigger a form to close when it loses focus

I have two forms, form1 and form2. form1 has a button that when clicked opens form2 center screen over form1. form2 is smaller than form1 (on purpose). If the c

A classical jQuery error - Uncaught TypeError: undefined is not a function

I have some JS functions in my page, and I got this error. I removed everything but the incriminated lines and I still get this error. I searched this forum and

How can I align vertically and horizontally my fields for each column?

How do I align my columns horizontally and vertically aligned in each column? Here the picture (whatI have/whatI want): export default function App() {

How to check if at least one of three input fields is filled with content in Angular 7

I am developing a web client with angular 7 and bootstrap. On my start page I have a form group with three input fields and a submit button which shall be disab

Javascript Popup Form

I have an image where if you click the image, it acts as a button and opens up an overlay window with a form. A user can submit a username and password and subm

Form Validation and Submission to database

I am working on a project that has a FORM which should VALIDATE itself and then submit the data to the MySQL Database. But I am facing an error. This is the f

How to prevent that a JQuery button submit my form?

I am absolutly new in JQuery development and I have the following problem. I have a form that contains this JQuery button: <!-- RESET BUTTON: --> <td&g

Why this form is submitted also if this script forbids the submission?

I am absolutely new in JavaScript development and I have the following problem. I have a form containing two input tags where the user can insert two dates (som

event.preventDefault(); only works some of the time with submit form

I am using the Mailchimp API to submit a form. The goal is to prevent the default callback provided by Mailchimp. The majority of the time event.preventDefault(

Javascript firing function twice and 1 of 4 functions not working

I'm creating a calculator in JavaScript. It is working, except for the add() function (sub, mult, and div work fine) and when I press "=" it sends the answer t

How can setTimeout save and load data back to form inputs if browser crashes, and I visit that same page again?

How can setTimeout save and load data for select form inputs? I tried to get it working with event listeners. I checked the capture and bubble which I am still

JavaScript code displaying in browser when form submitted, not the result of the script

I'm writing a basic calculator in JavaScript, and when I hit "=" on the html form it is returning the entire calculator.js, not the result. I'm not sure why th

JavaScript to update End Date when Start Date is changed

For the site I am developing, I use a form to update the different fields of a model. Some of those fields need to be updated according to the values of others.

Django Form. View form with models of logged user

I'm doing simple to do app in django. I want user to have possibility to add boards and task (task is specified for board). When user is adding task (form creat

How to avoid username/password autofill within a form in Chrome?

I have an admin form with username and password fields that is being filled in by Chrome as it has a username and password remembered. I would like to prevent t

Can I build my form without using Django form?

I'm using Django and I just did a big form Using HTML5 and bootstrap. Can I still send the form via the post method to django if I'm not using it to generate th