[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4284: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4286: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4287: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4288: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
www.dhtmlgoodies.com • View topic - Chained Select chained to a <input>
Advertisement

Chained Select chained to a <input>

Moderators: Calcifer, slothy

Chained Select chained to a <input>

Postby jonathaneyoung » Tue Jul 25, 2006 3:49 am

jonathaneyoung
 
Posts: 7
Joined: Tue Jul 25, 2006 3:41 am

Postby Batalf » Tue Jul 25, 2006 12:55 pm

Batalf
Site Admin
 
Posts: 2160
Joined: Sat Oct 22, 2005 9:38 pm

Postby jonathaneyoung » Tue Jul 25, 2006 2:53 pm

jonathaneyoung
 
Posts: 7
Joined: Tue Jul 25, 2006 3:41 am

Postby Batalf » Tue Jul 25, 2006 2:59 pm

Batalf
Site Admin
 
Posts: 2160
Joined: Sat Oct 22, 2005 9:38 pm

Postby jonathaneyoung » Tue Jul 25, 2006 3:33 pm

jonathaneyoung
 
Posts: 7
Joined: Tue Jul 25, 2006 3:41 am

Postby Batalf » Tue Jul 25, 2006 3:35 pm

Batalf
Site Admin
 
Posts: 2160
Joined: Sat Oct 22, 2005 9:38 pm

Postby jonathaneyoung » Tue Jul 25, 2006 3:51 pm

jonathaneyoung
 
Posts: 7
Joined: Tue Jul 25, 2006 3:41 am

Postby jonathaneyoung » Wed Jul 26, 2006 4:57 pm

Batalf,
I'm really having trouble figuring out how to pull a specfic text into a text field, depending on what option was chosen in the select field. Can you help me here or point me in the right direction?
jonathaneyoung
 
Posts: 7
Joined: Tue Jul 25, 2006 3:41 am

Postby Batalf » Thu Jul 27, 2006 1:03 am

Batalf
Site Admin
 
Posts: 2160
Joined: Sat Oct 22, 2005 9:38 pm

Postby jonathaneyoung » Thu Jul 27, 2006 1:10 am

<script type="text/javascript">

var options = new Array();
options['Screen Printing'] = 'Custom screen printing on item #';
options['Embroidery'] = 'Custom embroidery on item #';
options['Awards'] = 'Custom engraved awards';

function setValue(selIndex)
{
if(selIndex==0)return;
document.getElementById('Taxable_Description1').value = options[selIndex];
}

</script>
</head>

<body>
<table><form>
<tr>
<td nowrap><font size="1">Taxable</font></td>
<td width="200">
<select id="Taxable_Item1" name="Taxable_Item1" onchange="setValue(this.selectedIndex);">
<option value="">Select</option>
<option value="Screen Printing">Screen Printing</option>
<option value="Embroidery">Embroidery</option>
<option value="Awards">Awards</option>
<option value="Custom digital vinyl">Digital Vinyl</option>
<option value="Custom vinyl graphics">Standard Vinyl</option>
<option value="Custom logo digitizing for embroidery">Digitizing</option>
<option value="Custom graphic design work">Graphic Design</option>
<option value="Customized promotional products">Promotional</option>
<option value="Custom quotation for">Quotation</option>
</select>
</td>
<td>
<input class="averagetextbox" onBlur="reCheckValue(this)" onClick="checkValue(this)" tabIndex="1" onChange="getTaxableTotal(this,this.form)" size="4" name="Taxable_1_qty" input></td>
<td align="left"><strong>&nbsp;$</strong><input class="averagetextbox" onBlur="reCheckValue(this)" onClick="checkValue(this)" tabIndex="1" onChange="getTaxableTotal(this,this.form)" size="7" name="Taxable_1_price" input></td>
<td><strong>&nbsp;$</strong><input class="averagetextbox" onFocus="this.blur()" readOnly size="8" name="Taxable_1_tot"></td>
</tr>
<tr>
<td></td>
<td>
<textarea type="text" class="averagetextbox" id="Taxable_Description1" rows="3" cols="40" wrap="off" name="Taxable_Description1"></textarea></td>
</tr>
</form>
</table
></body>
</html>
jonathaneyoung
 
Posts: 7
Joined: Tue Jul 25, 2006 3:41 am

Postby Batalf » Thu Jul 27, 2006 1:15 am

Batalf
Site Admin
 
Posts: 2160
Joined: Sat Oct 22, 2005 9:38 pm

Postby jonathaneyoung » Thu Jul 27, 2006 1:20 am

jonathaneyoung
 
Posts: 7
Joined: Tue Jul 25, 2006 3:41 am


Return to General questions regarding AJAX scripts

Who is online

Users browsing this forum: No registered users and 8 guests

cron