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('|');
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);
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 s.na...@gmail.com wrote:
i have values in data like
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 s.na...@gmail.com wrote:
i
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 s.na...@gmail.com wrote:
i m using internet explorar.and data
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 jwira...@gmail.com 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 s.na...@gmail.com wrote:
i have changed '|' seperator still it is not working.:(
On Jul 16, 10:31 am, 刘永杰 liuyongjie...@gmail.com wrote:
change split character,not use '|'.
2009/7/16 naz s.na...@gmail.com
hi
i m adding some values to drop down
by usind j query by this code
var programs=[];
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 s.na...@gmail.com 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;
change split character,not use '|'.
2009/7/16 naz s.na...@gmail.com
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;iprograms.length-1;i++)
{
var objDropdown
9 matches
Mail list logo