This is JavaScript, with an error in IE, but it works in FF (the error is "document.getelementsbyname (...). 0.innerhtml is null or not an object":
var oldVal = parseInt(document.getElementsByName("outSL")[0].innerHTML);
This is the asp.net code where I want to capture the internal html that will be populated by the database:
<asp:Label ID="LabelSL" runat="server" Text="" name="outSL" style="visibility:hidden;"></asp:Label>
The identifier is dynamic, when it is displayed, it looks like this: here I am 43:
<span id="ctl00_cpMainContent_LabelSL" name="outSL" style="visibility:hidden;">43</span>
So ... how can I get this in IE and FF with the same function?
Thank!
source
share