Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / product info page problem

product info page problem

Locked

Views: 867

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
1 Jul 2009, 7:22 PM
#1
wilkesy avatar

wilkesy

Zen Follower

Join Date:
Jul 2004
Location:
stroud, gloucestershire
Posts:
198
Plugin Contributions:
0

product info page problem

Hi,

im running into a small problem with regards to the dropdown boxes for product attributes.

The name for the whole select statement comes out something like this <select name="id[1]" ......

I want to use this value in some javascript but because of the brackets i cant get it to work, javascript would be

document.mytest.id[1].selectedIndex;

how easy would it be to either get the javascript to work, or to chnge how the select statement is named?

Many thanks

Paul

3 Jul 2009, 1:06 PM
#2
fred_artemis avatar

fred_artemis

New Zenner

Join Date:
Dec 2006
Posts:
17
Plugin Contributions:
0

Re: product info page problem

Place a backslash before the character that causes trouble in Javascript.

E.g. [

I hope this helps you.