html-input

totally lost -- textarea in IE7 disappears when i mouse over

i'm just going to toss this question up in a rough form now, while i'm thinking of it, and come back to flesh out the details. it's terribly vexing. maybe someone here will know wtf is going on. i have this big data-entry sort of page, a table-kind of layout using divs. each row has subrows which can be toggled open/closed. the toggling...

Inline Disabling of Firefox Spellcheck?

I researched this a while ago and can't remember how to do it. I want to be able to prevent Firefox from running it's spell-checking functionality on certain input fields from within the page. I know it's possible but can't remember how to set it up. ...

Javascript login form doesn't submit when user hits Enter

Hi there, I'm working on a simple javascript login for a site, and have come up with this: <form id="loginwindow"> <strong>Login to view!</strong> <p><strong>User ID:</strong> <input type="text" name="text2"> </p> <p><strong>Password:</strong> <input type="password" name="text1"><br> <input type="button" value="Check In" name="Sub...

Programmatically selecting partial text in an input field

How can I programmatically select a specific range of text in an HTML input field? (I don't want to select the entire field, just a subset) Also, how can I determine the currently selected range in a field? ...

Javascript Calculate the sum off multiple HTML-input values

Hi everyone, im looking for some Javascript code to calculate the sum off multiple HTML-input values. The amount off inputs are dynamic so i'm looking for something like "for each" input. the format off the numbers is 1 000,00 (space as thousand separator and , as decimal separator). My inputs are in and array so the ID's and NAME's is...

JQuery Dialog not displaying imput type text

I have been trying to add a standard html :<imput type="text" value=""> into a JQuery dialog box, but it does not show up. I have tried with a selector and it was working. I don't understand why it doesn't with text imputs. ...

How to prevent user from deleting text in a text box.

Ok so I am new here and was wondering if someone a little more advance then me can help me out. I have text box on my website with code for user(s) to copy the code that's in the text box and paste the code in Orkut scrapbook which will generate a imagine. I am using onclick so when user clicks on code it highlight it and then they c...

does php mysql_fetch_array works with html input box?

this is my entire PHP code: <?php if(empty($_POST['selid'])) {echo "no value selected"; } else { $con = mysql_connect("localhost","root",""); if(mysql_select_db("cdcol", $con)) { $sql= "SELECT * FROM products where Id = '$_POST[selid]'"; ...

accept attribute in input file is not working

hi i came across a browse file dialog control tag in htnl .and the tag was <input id="myfile" name="myfile" type="file" accept="application/pdf"/> but the accept attribute doesnt seems to have any effect .iam using internetexplorer 8 browser does it have any thing to do with the accept atribute ...

how to capture key repeats with javascript

i have an asp.net form and an asp:textbox. i have a problem when the user presses and HOLDS a key down. the user selects the text box and then presses and holds '9' until the text box fills with 9s. Is there any way to detect this situation? Is there a way to stop key repeats when the key is held down? ...

One click upload button

I am looking to create a button which when clicked opens a dialog window where they select an image to upload and then once they select it and press ok within the dialog window the upload begins (upload bar optional :) ) Preferable it would be a jquery plugin that modifys the functionality of the standard html file input... as I have al...

Detect when a user chooses a file using a file input

How can I detect when a user has chosen which file to upload using a html file input. That way I can submit the form automatically. ...

What characters are allowed in the HTML Name attribute?

I have a PHP script that will generate <input>s dynamically, so I was wondering if I needed to filter any characters in the name attribute. I know that the name has to start with a letter, but I don't know any other rules. I figure square brackets must be allowed, since PHP uses these to create arrays from form data. How about parenthes...

ASP.NET MVC HTML helper methods for new HTML5 input types

HTML5 appears to support a new range of input fields for things such as: Numbers Email addresses Colors URLs Numeric range (via a slider) Dates Search boxes Has anyone implemented HtmlHelper extension methods for ASP.NET MVC that generates these yet? It's possible to do this using an overload that accepts htmlAttributes, such as: H...

Getting an input element's value in jQuery

How can i get the input element value in jquery ...

Writing a string property of an object with <html:text />

Hi. I've got an object in my form that contains various string properties. When I want to print it in my JSP form I could do it with <c:out value="${UFForm.company.address}" /> which works perfectly. Now I want to create an HTML input field. But when I write <html:text property="company.address" /> I get an error saying Caused b...