Sorry I missed this.
I do the same thing ricardo recommended when unable to load the values
from the server on load.
On Sep 18, 12:23 pm, ricardobeat [EMAIL PROTECTED] wrote:
oops, I didn't pay attention.
You need to set the selected attribute and then fire the 'change'
event on the parent
hi ricardo,
i tried this before,
this only can set the first box.
it won't trigger the second box to get data from database.
second box still empty.
i have added selected attribute on my sample page.
http://sskes.damimi.org/test/
thanks anyway.
On 9月18日, 上午6時32分, ricardobeat [EMAIL PROTECTED]
Hi ricardo,
i tried this before,but set option attribute can only let first box
selected on B
it won't trigger second box get data from database.
second box won't change until you click on the first box and select
other options
all i want is first box selected on B and second box selected on
B2
oops, I didn't pay attention.
You need to set the selected attribute and then fire the 'change'
event on the parent select to which the 'cascade' funcionality is
bounded by default.
$('#first [value=B]').attr('selected','selected').parent().change()
ricardo
On Sep 18, 4:14 am, kevin [EMAIL
You can do it via XHTML:
option value=B selected=selectedB/option
or add the attribute with jQuery:
$('#first option:eq(2)').attr('selected','selected');
ricardo
On Sep 17, 10:50 am, kevin [EMAIL PROTECTED] wrote:
Hi all,
here is my sample page http://sskes.damimi.org/test/
my question
5 matches
Mail list logo