Category "jquery-events"

Issue with triggering the submit function with included js file

I'm have a problem triggering the form submission. I am setting the form into <div id="access"></div> innerHTML using the included js file in the he

How to submit a form when page loads using JavaScript?

I know this question has been answered many times but in my case the JavaScript code creates a infinite loop which makes my page load continuously, <script t

How to trigger 'submit' event before the 'blur' event is triggered?

I have a form which has an error message as shown in the example below: http://codepen.io/anon/pen/dYWyEM?editors=101 Steps to reproduce the problem is as follo

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

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 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 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.

Open a new window using data from input form

In a input form in a HTML file, the user is supposed to put an URL (let's call it thislink). Then I want, when the user clicks on the submit button, to open a n

How to dynamically add a parent div (reparent) to a form without losing event handlers

I want to add a parent div to a form dynamically. No code is required, but here it is (simplified), before someone complains: <form id="fileupload" style

How to dynamically add a parent div (reparent) to a form without losing event handlers

I want to add a parent div to a form dynamically. No code is required, but here it is (simplified), before someone complains: <form id="fileupload" style

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

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

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

Prevent click event after drag in jQuery

I have a draggable <div> with a click event and without any event for drag, but after I drag <div> the click event is apply to <div>. How can

Fetch selected item of DropDownList using $(this) object

How do I fetch the selected item of a DropDownList using $(this)? I have two DropDownLists in a web page. I want to get the selected item name. I tried 3 ways a

Best way to scrolldown onpageload

I have the following code: <script type="text/javascript"> window.onload = function () { window.scrollBy(0, 100); } </script

Sequencing two action on a button click

Problem: I have a asp.net button and on click of that I am displaying another window using window.open() at the client side using <script></script>

IE bug triggers click for 2 buttons?

I am trying to trigger the submit button when a user presses enter. Works great for all browsers except Internet Explorer 9. Strange thing is that IE insists on