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
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('|');
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'
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
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
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('|');
> > $('#
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
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
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 =
9 matches
Mail list logo