[jQuery] Re: Value adding to drop down

2009-07-19 Thread Jules
OK that means the values causing the problem. Are your strings stored in the database as double byte characters? Try to view your page in Firefox and use firebug to display the value instead of using alert (). On Jul 20, 2:08 pm, naz wrote: > i have values in data like BSIT|MSIT|BSC| etc when

[jQuery] Re: Value adding to drop down

2009-07-19 Thread naz
i have values in data like BSIT|MSIT|BSC| etc when i used alert(). to display data values then values are correct but when values appear in drop down they become |BSIT code is like this var programs=[]; alert(data); programs=data.split('|');

[jQuery] Re: Value adding to drop down

2009-07-19 Thread naz
i have values in data same like you are using BSIT|MSIT|BSC| etc when i used alert(). to display data values then values are correct but when values appear in drop down they become |BSIT code is like this var programs=[]; alert(data); programs=data.split('|'); $('#p_course'

[jQuery] Re: Value adding to drop down

2009-07-18 Thread Jules
I tested your code with the following data var data = 'program1|program2|program3|'; and the drop down combo box displays program1 program2 program3 correctly. Again could you post the value of your data? On Jul 18, 2:07 pm, naz wrote: > i m using internet explorar.and data value is SE,DLD

[jQuery] Re: Value adding to drop down

2009-07-18 Thread Theodore Ni
Please post again your current jQuery code including the separator you are using, as well as what is inside the data variable in full. That way, we can understand exactly what's going on; right now, I'm still confused. Teddy On Sat, Jul 18, 2009 at 12:07 AM, naz wrote: > > i have changed '|' se

[jQuery] Re: Value adding to drop down

2009-07-17 Thread naz
i have changed '|' seperator still it is not working.:( On Jul 16, 10:31 am, 刘永杰 wrote: > change split character,not use '|'. > > 2009/7/16 naz > > > > > > > hi > > i m adding some values to drop down > > by usind j query by this code > > var programs=[]; > >  programs=data.split('|'); > > $('#

[jQuery] Re: Value adding to drop down

2009-07-17 Thread naz
i m using internet explorar.and data value is SE,DLD etc i m getting these values from db. On Jul 16, 11:14 am, Jules wrote: > The code looks fine to me.  Could you post the data value?  What is > the browser you are using? > > On Jul 16, 2:58 pm, naz wrote: > > > > > hi > > i m adding some val

[jQuery] Re: Value adding to drop down

2009-07-15 Thread Jules
The code looks fine to me. Could you post the data value? What is the browser you are using? On Jul 16, 2:58 pm, naz wrote: > hi > i m adding some values to drop down > by usind j query by this code > var programs=[]; >  programs=data.split('|'); > $('#p_course').length = 1; >   for(var i=0;i

[jQuery] Re: Value adding to drop down

2009-07-15 Thread 刘永杰
change split character,not use '|'. 2009/7/16 naz > > hi > i m adding some values to drop down > by usind j query by this code > var programs=[]; > programs=data.split('|'); > $('#p_course').length = 1; > for(var i=0;i { > var objDropdown =$('#p_course').get(0); > var objOption =