innerhtml/html text is not working in chrome
Hi,
I am want to implement <br> in listbox item text but it's not working in chrome but working in firefox.
need to know any alternate way to resolve this issue.
HTML:
<select id='lstBox1' style="width:240px;height:346px" multiple="multiple" >
<option value="1" >ABCDEFGHIJKLMNOPQRSTUVWXYZ</option>
</select>
Jquery:
$("#lstBox1 option[value='1']").innerHtml("ABCDEFGHIJKLMNOPQ
<br/>RSTUVWXYZ");
Note:
So that it will display in listbox like:
ABCDEFGHIJKLMNOPQ
RSTUVWXYZ