Select Field Does Not Work With IE
Sep 2, 2010
I have a select field that does not work with IE. The contents of this.value is blank in IE and I can't find the error. In firefox and chrome the value of this.value is correct as I pass a letter to the function. The code follows: Quote: <td name="hoursa_997" id="cell_997" bgcolor="red"
[Code]...
View 3 Replies
ADVERTISEMENT
Jul 23, 2005
Is there any way to make a SELECT field in HTML as a read only field?
View 5 Replies
View Related
Mar 19, 2011
What I try to do is the following..let's say I have this form:
<select name="sSelectMe" class="someclass">
<option value="">select an option</option>
<option value="1">option 1</option>
[code]....
View 1 Replies
View Related
Oct 26, 2010
I want to create something like this; [url]
That the person can select a field by clicking on the grid field.
View 4 Replies
View Related
Apr 1, 2011
i have this form:
Code:
<html>
<body>
<form name="x">
[code]...
what i want to do is have a selection from 'tst' trigger an input into 'choose' from the data inputted into the 'fname' and 'lname' fields. for example, i want option '1', when selected to draw the input from 'fname' and place it into 'choose'or i might want to select the data in 'lname' instead, so i will tie option 2 to it, so when the user selects option 2 the contents of 'lname' go into 'choose' instead.
View 3 Replies
View Related
Jul 24, 2009
<script language="JavaScript" type="text/javascript">
<!--
/*[code]....
// This script supports an unlimited number of linked combo boxed
// Their id must be "combo_0", "combo_1", "combo_2" etc.
// Here you have to put the data that will fill the combo boxes
// ie. data_2_1 will be the first option in the second combo box
// when the first combo box has the second option selected
// first combo box
data_1 = new Option("Business Cards", "$");
data_2 = new Option("Club Flyers", "$$");[code].....
I have this code, and I was wondering if it is possible to make the select boxes appear AFTER you select the field before.
View 8 Replies
View Related
Sep 29, 2011
been lurking around to see if I could find any kind of solution to what I'm trying to solve, but the closest thing I got was this old thread:What I wantI'm trying to create is a SELECT menu with an INPUT field, but the INPUT field won't display before I select an option from the list. After I've selected an option I want two things to happen; the INPUT field displays and a new SELECT menu shows up with some other options.Then in the last menu, where I create the options of course, theres a final option that finalizes the entire SELECT menu and gives them a button to submit it, and when they press it, all the options will just be printed along with what the user typed in the INPUT fields.
The problemI have no idea how to automatically show the next SELECT menu, which I've created, but hidden, for the user with it's own text field, and then in the end make it possible to submit it to print all the selected options and whats typed in the INPUT fields.I'm guessing I need some sort of jQuery/JavaScript, but I'm not very familiar with that
View 2 Replies
View Related
Apr 29, 2011
I have tried numerous attempts in getting the Address field to work (i.e. validated). I want it to accept letters, numbers, spaces and commas! However, it won't let me! Below is the code I have provided.
[Code]...
View 13 Replies
View Related
Jan 3, 2009
This script is suppose to check for empty fields and check if the expiry_date field on the form is in the right format.
View 10 Replies
View Related
Apr 23, 2010
I have a Javascript on my credit card page which populates the elements of a dropdown field (The Year field).It just works with Internet Explorer and not Firefox.Here is the script:
<script type="text/javascript">
<%
Dim orderDateYearx
orderDateYearx = cStr(Year(Date))
[code]...
View 4 Replies
View Related
Nov 15, 2011
To validate the form I'm using jquery simple validation. In order to validate a section I put the "class="required" around it but for the select fields I was wondering if it would be possible to display a pop up if they aren't selected?
The code:
<select name="sltDay">
<option value="">day</option>
<% For i = 1 to 31
[code]....
View 1 Replies
View Related
May 6, 2010
I am trying to use a value from the select field to replace text within a strong tage;
Code:
<strong id="selected_country">Country Will appear here</strong>
So far the script anounces the selected country using alert. Here is the scrupt so far:
Code:
function getCountry()
{
// Validate that the browser knows getElementById
[code]....
View 2 Replies
View Related
Mar 11, 2005
I have a select form element structured like this:
Code:
<select name="buyer_id">
<option value="1">John Adams</option>
<option value="2">Bill Amos</option>
<option value="3">Fred Boon</option>
...
</select>
The name list is now getting huge and I would like to allow my admins to be able to type in the first few letters of a buyers name and have the select form "find" what the admin is entering. But I need the value of the buyer to be passed as the buyer's id for DB purposes.
I found a script on these forums that actually does what I want using a <select> field, but there is one little annoyance with it. Whenever a letter key is pressed, the <select> finds the first occurrence of the letter (as usual with a <select> field). It does come back immediately, but it doesn't look good when you are typing through the options and it keeps flashing from one to the other. Code:
View 2 Replies
View Related
Mar 30, 2011
I saw this on a website, and I'm confused as to what the possible purpose could be for this.
Code:
<input id="myIDNAME" name="myIDNAME" type="hidden" value="0" />
<input id="myIDNAME" name="myIDNAME" type="checkbox" value="0" />
I thought repeating an ID would return an error.
View 3 Replies
View Related
Nov 22, 2011
I have the following html markup: <select id="isadmin" name="isadmin" class="shortField"><option>false</option><option>true</option></select> I tried to use jQuery to set the value like this: $('#isadmin').attr('value', data.isadmin); data is a json result by calling some service page. This works with FF, but not with IE9. How do I make it so both browsers will work?
View 3 Replies
View Related
Aug 6, 2009
Hey, I've been messing about with this Javascript select box validation and I can't get it to work.
At the moment all I want to do is alert the selectIndex value of the select box.
java script:
Form:
The option values and texts are filled out by a PHP script and I'm using a <span> to trigger the funtion.
View 3 Replies
View Related
Jul 23, 2005
I have a select box populated with about 1000 names. What I would like
to do is to have a text box available that a user can type in say "mi"
and have the select box jump down to the first entry starting with
"mi", i.e. "Michael" followed by "Mike". Code:
View 3 Replies
View Related
Jul 23, 2005
I have the following script:
function highlightsearch(field) {
field.focus();
field.select();
}
select and highlight the text in an input field...
Is there any way you can change the 'fill' color of the
highlighted selection to anything other than black?
View 1 Replies
View Related
Jul 23, 2005
I am using select()/focus() to position the cursor at a particular field
on a form. This works, but when the user presses the Tab key in IE the
cursor jumps to the address bar rather than the next field (Firefox is
fine). Does anyone know why this might be happening and how to stop it?
Below is the code that I use to set the cursor position (it is somewhat
convoluted because it is generated via a series of macros). The cursor
is positioned correctly, but when I hit Tab the cursor does not follow
the expected flow through the page (i.e. it doesn't go to the next field).
// The page contains:
<script language="JavaScript1.2" type="text/javascript">
<!--
var focusId = 'fnameId'
SafeAddOnload(setFocus);
//-->
</script>
<input id="fnameId" type="text" size="50" name="fname" value="" />
// From a .js file loaded by the page:
// SafeAddOnload (used above) just delays execution until the
// page has loaded.
// getRef (used below) simply retrieves the DOM object using the id.
//
function setFocus()
{
obj = getRef(focusId);
if (obj != null)
try
{
obj.select();
}
catch (e)
{
obj.focus();
}
}
View 2 Replies
View Related
Sep 19, 2006
i'm adding items to a select list like this:
var insertPoint = inst.getElementsByTagName("itemlist").item(0);
var itemCount = insertPoint.getElementsByTagName("item").length;
for(x=0;x<found.length;x++)
{
alert(found[x])
var item = document.createElementNS("", "item")
item.appendChild(document.createTextNode(found[x]))
insertPoint.appendChild(item)
}
Now if i want to delete all items of this select list how to do it?
View 2 Replies
View Related
Jun 24, 2011
I have a PHP form which has an select field (i.e. drop-options) where the different options are populated from a MySQL database as follows:
<select size="1" id="category" name="category">
<option value="">Select from drop-list:</option>
<?php
$sql = "SELECT * FROM `DB1`
[code]....
Now, the issue I have is that I also have another input field (possibly hidden) in this form which is called 'category_id', and what I want it to do is to automatically populate when the user selects the relevant 'category' from the select field above.
View 11 Replies
View Related
Oct 4, 2011
I have a text box with add button.
When the add button is clicked i want it to add the contents of the text box as a new line in the select field.
I also want a button that would allow me to remove the selected item in the select field.
is this possible?
View 1 Replies
View Related
Oct 15, 2005
My problem is this: using Firefox I can manipulate the '<option>'s into select-fields so that I can draw icons near their values just using css. W3C doesn't allow using anything but "CDATA" into options...
The problem is that Internet Explorer doesn't respect any css directive to make the same.
Is there a way of managing this by using javascript?
View 2 Replies
View Related
Aug 6, 2009
So before I used jQuery I had this approach to set select field as not selected. So the question is what would be the equivalent way to do it in jQuery?
Code JavaScript:
if (tag == 'select'){
this.selectedIndex = -1;
}
View 1 Replies
View Related
Feb 28, 2005
I have an online web2phone sms phone book, with a list of users phone numbers.
Now when users want to send sms, they select from the multiple options, which is gotten from the databse with their phone numbers. I would want the value of the check boxes to appear in the text field area sepearted by commas. PLEASE NOTE;
1. The values of the checkboxes are dynamic and picked from the databse
2. The value to appear in the textfield area are the phone numbers and should be sepearted by commas Can anyone assist me ? Code:
View 4 Replies
View Related
Jun 15, 2005
<SELECT NAME="subcategory" class="small" onchange="this.blur();">
doesn't remove focus from the drop-down field?
View 2 Replies
View Related