Skip to main content
adicionou 4 caracteres ao conteúdo
Fonte Link
Leonel Sanches da Silva
  • 89,6mil
  • 9
  • 125
  • 233

Seria algo assim:

$('#ClienteId').append($('<option>', { text: "Novo", value: 0, selected: false }));
var options = $('#ClienteId option');
$(options[options.size()] - 1]).insertAfter($(options)[1]));

Seria algo assim:

$('#ClienteId').append($('<option>', { text: "Novo", value: 0, selected: false }));
var options = $('#ClienteId option');
$(options[options.size()]).insertAfter($(options)[1]));

Seria algo assim:

$('#ClienteId').append($('<option>', { text: "Novo", value: 0, selected: false }));
var options = $('#ClienteId option');
$(options[options.size() - 1]).insertAfter($(options)[1]));
Fonte Link
Leonel Sanches da Silva
  • 89,6mil
  • 9
  • 125
  • 233

Seria algo assim:

$('#ClienteId').append($('<option>', { text: "Novo", value: 0, selected: false }));
var options = $('#ClienteId option');
$(options[options.size()]).insertAfter($(options)[1]));