Awesome, I salute you!
I have a related question regarding another onClick feature, but feel free to discard this scenario...
I have a drop down select box that populates using php from a stock table. I also have a text box near this i would like to display the current available stock for whatever is selected....so same table. Below is the code...
<label for="item1_item" title="Please select the 1st item from the drop down list"><label/>
/* connect to database */
** CREATE QUERY TO EXTRACT AVAILABLE STOCK
** STORE IN VARIABLES FOR USE IN SELECT FIELD
/* drop down query for stock */
$stock_query = "SELECT `description`
ORDER BY `description`";
$stock_result = mysql_query($stock_query);
$numrows = mysql_num_rows($stock_result);
/* PHP SELECT MENU
1 - create "Please select" default category
2 - create for loop to cycle through stock
3 - assign a variables for stock descriptions...
4 - ...display stock descriptions
echo '<option value="">Please select an item...</option>';
for($i=0; $i < $numrows; $i++)
$stock_name = mysql_result($stock_result,$i,0);
Disabled text box directly after i would like to have populated with the level of stock for whichever items was selected.
<label for="item1_availablequantity" title="Available Quantity">Available Quantity: </label>
<input id="item1_availablequantity" name="item1_availablequantity" type="text" maxlength="2" size="2" disabled="disabled" />
How would i construct this?
Thanks for any advice you are able to give!