javascript - innerHTML - td element -


i trying add rows dynamically using dojo code working fine in ie 9 document mode, throwing error in ie8. can rectify this?

this sample code.

var tr1 = dojo.create("tr",{name:'esigntr',id:'esigntr_'+rowno_form}); tr1.setattribute('class','altrow'); dojo.place(tr1,tbody);  var td1 = dojo.create("td",{width:'5%', style:{'text-align':'left', 'verticalalign':'middle'}, align:'center'}, tr1); td1.innerhtml = "<strong>page #:</strong> ";     

exception in line td1.innerhtml

script601: unknown runtime error test.js, line 883 character 2 

screenshots attached both verrsion

ie 9

as can see, new row has been added after checking radio button - page#

as can see, new row has been added after checking radio button - **page#**

ie 8

the row not coming in ie8

the row not coming in ie8

getting error

script601: unknown runtime error test.js, line 883 character 2 

<strong> html 5 element. 99% ie8 not support <strong> element.
see here strong , b element ie8
try changing element bold i.e <b>. hope helps.


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -