Category "forms"

textbox value change event not getting fired jQuery

I am filling texbox value through ajax call. I want to change event get fired when the value gets filled. ajax call: $.ajax({ url: 'ajaxExecute.aspx/GetCust

JavaScript IE double submit with form.submit()

I am experiencing difficulties with IE (8, 11) double submit which is triggered by JavaScript code: this.disabled=true; form.submit(); return false; Sentence

Django Nested Inline Formsets to Populate Multilevel Nested Form

I'm trying to solve a problem. I have a model hierarchy like this: class Task(models.Model): name = models.CharField(max_length=255) number_of_steps = m

Resetting all fields in a form when it is opened

I have two forms that lies under two tabs in a portlet. When I click on tab 2 I want all fields in that form to be empty. I don't want a button. I tried with: f

Why images paths not store in database MVC5?

I'm new to MVC so I hope to get help regarding my question. I am making users upload images. the image path will store in the database but the image itself will

Popup Window and PHP form

I've created a contact page and a separate PHP page to receive the posted data. I'd like to make the PHP open in a popup window. I've tried methods online witho

Detecting where a submit event came from with jQuery

I need to detect how a user submitted a form to generate some statistics. They can either press enter when typing on the input or they could click the submit bu

View selected values of a form

I'm trying to view the value selected in a radio button. The form is: <form onsubmit="return false;"> <fieldset> <h3>Textos</h3> <la

Date input type validation in javascript?

I can't quite figure out how to validate a date input type in javascript. I tried looking on the internet but I just couldnt find anything. I have one field th

Validating email that has @something.co.uk

I have the following regex options: let emailValid = "/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/" emailValid = "^[A-Z0-9._%+

Why on IE 8 that a change event on input is not propagated to the form element?

I thought a change event would propagate from the input element to the form element in general? On Chrome, it works: http://jsfiddle.net/gjatW/13/ But on IE 8

HTML forms validation with a FILE input object

I've been pulling my hair out trying to add a FILE input object to a form on one of my intranet web pages. I saw this article (HTML <input type='file'> F

request.FILES always empty on file upload

I am totally stumped on this, and must be doing something incredibly stupid. I am trying to simply upload a file on a Django project. The problem seems to be th

Where to add onsubmit to a form in Javascript

In my HTML I've got a form without an onsubmit event listener: <form action="contact.php" method="post" id="contact"> ... <input type="submit"

Toggle between a textbox and a select using PHP

I have a basic customer information form that I would like to make a little more interactive. The idea being if the user selects a country that is not USA or C

Which Captcha or related is easy to is install on form?

I am a newbie to programming and I already struggled a lot for a week to have a fully functional form that validates, stores data, and then redirects. Please le

Stop a form after it has submitted

Just like the question asks, is there a way to stop a form after it has been submitted? This is not a 'how do I validate' question. I cannot call a function and

How to move the cursor in a DataGridView c#

How to move the cursor in a DataGridView? No. .Selected = true; as this puts the cell in blue by default! I want the cursor to move When I click on "Add" button

JavaScript this.form returns unexpected form

I got some enclosing form and two nested forms. the two nested forms are evaluated with ajax on buttonclick and the external form has a submit-button. Simplifie

Simplest way to disable button on submission of a form?

I've been trying to find the "right" way to prevent double submits of forms. There are lots of related posts on SO but none of them hit the spot for me. Two q