Is there a consistent way across browsers to hide the new spin boxes that some browsers (such as Chrome) render for HTML input of type number?  I am looking for a CSS or JavaScript method to prevent the up/down arrows from appearing.  <input id=...
I'm trying to select this element which has square brackets in the name attribute:  <input type="text" name="inputName[]" value="someValue">   I've tried this (which doesn't work):  $('input[inputName[]...
This question already has answers here:...
Is there a way to detect if a key is currently down in JavaScript?  I know about the "keydown" event, but that's not what I need. Some time AFTER the key is pressed, I want to be able to detect if it is still pressed down.  P. S. The bi...
I have a problem masking a phone input with jQuery and Masked Input Plugin.  There are 2 possible formats:   (XX)XXXX-XXXX   (XX)XXXXX-XXXX   Is there any way to mask it accepting both cases?  EDIT:  I tried:  $("#phone").mask("(99) 999...
I'm using forms in HTML and javascript. I would like an alert to pop up only if the user inputs a LETTER and clicks submit.  So I have the HTML code:  <form name="myForm" action="" onsubmit="return checkInp()" method=&#...
I have this right now:  <input type="text" placeholder="Paste text" onPaste="alert(this.value);">  This does infact work, except, it returns a blank alert window. I don't get any value. Help?...
This is strange behavior to me but on Webkit browsers (Chrome/Safari, not Firefox) if I include a space in a string of numbers in an <input type=number> then the value of that input is empty.  See this JSFiddle: http://jsfiddle.net/timrpeterson...
Note:      The answers & comments below reflect the state of legacy browsers in 2009. Now you can actually set the value of the file input element dynamically/programatically using JavaScript in 2017.      See the answer in this question for d...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.