Hi,
The prepend function just adds HTML at the beginning. You have to set
the select yourself. Simplest way would be like this:
$('select').prepend('<option selected="selected">Select ... </
option>');

or something like this:
$('select').prepend('<option>Select ... </option>');
$('select option:first').attr("selected","selected");

Paul

On Mar 17, 12:00 pm, lucas <chizovo...@gmail.com> wrote:
> Thanks! but, prepend put the element at begining of the list in the
> combo, but it isn´t selected as the first option....
> in the documentation i didn´t see nothing  to put it as selected.
> Thanks again!

Reply via email to