0

I've been trying to style html option tags, unsuccessfully. The code I've issued is the following:

String htmlString = <something inline styled>;
$("#nombreFuenteLB > option[value^='" + "Helvetica" + "']").replaceWith(htmlString);

But there was no good, any idea?

Thanks in advance,

1 Answers1

0

Before selecting anything you have to attach the elements to the document, you should test if the select returns something. Proly your filter doesnt match any element.

Manolo Carrasco Moñino
  • 9,723
  • 1
  • 22
  • 27