Linked Questions

0 votes
1 answer
2k views

For some reason I can not get it to work, after clicking enter on the keyboard the new input shows up for less than a millisecond and then disappears <!DOCTYPE html> <html> <...
user avatar
3 votes
2 answers
240 views

How can I place a button inside a form which when clicked will not submit the form? Demo HTML: <form> <button>TEST</button> </form> <div></div> Demo ...
carloabelli's user avatar
  • 4,349
0 votes
1 answer
2k views

So, I've created a button element with javascript. All seems to have went quite well for that. var btn = document.createElement("button"); btn.setAttribute('class', 'btn btn-primary'); ...
Skittles's user avatar
  • 2,918
1 vote
1 answer
211 views

In the below form when we click on save we are getting only form submit request to server. <form id="form1" action="service1" method="POST"> <button id="id1" onclick="getcount('emp'...
Karthik P's user avatar
3 votes
1 answer
158 views

The following code works. However, it shows the "newtext" and then it simply disappears. Can someone please let me know why it is not staying? Google Chrome is what I am using to test with. <...
Wayne Barron's user avatar
-1 votes
1 answer
399 views

I'm trying to create a multi step form using react hook form + zod. On the main page I have this const steps = [ { name: "Expertise Areas", fields: ["expertise_areas"] }, { ...
asallan3's user avatar
  • 159
0 votes
0 answers
29 views

The following code sample represents my problem which is, briefly, that when I click the button and execute togglehider(), the elements in the div do indeed collapse, but then the form is submitted as ...
JeffM_A1's user avatar
  • 101
703 votes
8 answers
501k views

I've got a form, with 2 buttons <a href="index.html"><button>Cancel changes</button></a> <button type="submit">Submit</button> I use jQuery UI's button on them ...
alex's user avatar
  • 492k
45 votes
2 answers
42k views

I just noticed that, in soundcloud, the "action" buttons on a track (like, repost, etc...) are all html button tags. Moreover, they are neither inside a form nor they bind to a form a la html5 nor ...
ChuckE's user avatar
  • 5,718
2 votes
4 answers
25k views

I have a callback function which redirects the user and I want to have it trigger after clicking "OK" on an alert window. Right now, the code looks like this: function myFunction(callback) { var ...
vgbm's user avatar
  • 23
3 votes
3 answers
4k views

I just found out that every time onclick event for my <button> placed inside <form> tag triggers, form submits it's data as if i clicked <input type='submit'>. I don't want that. ...
Alehar's user avatar
  • 639
5 votes
2 answers
9k views

I have the following code for demo purposes, showing a simple form row with error messages and a submit button: <form [ngFormOptions]="{updateOn: 'submit'}"> <tid-form-row> <...
Florian Gössele's user avatar
2 votes
2 answers
2k views

Possible Duplicate: Javascript add delete row sends form instead of adding row I have a page with two forms. One form simply has one hidden input element, used to help concatenate a query string. ...
VoidKing's user avatar
  • 6,452
2 votes
1 answer
3k views

In my controller i have methods $scope.openJukeboxesModalToGroup -- open modal popup $scope.searchJukeboxes --- to search on the page $scope.keyPressed -- capture the key pressing In the partial ...
jeevs's user avatar
  • 261
0 votes
2 answers
5k views

This question has two parts. The first takes precedence. Note I am new to HTML and JS, so please be verbose in your explanation. 1.) I have a form tag, inside which I have an input tag and a button, ...
SumNeuron's user avatar
  • 5,218

15 30 50 per page