Chrome Not Displaying Javascript Createelement Div Correctly?
I have the following legacy code creating a popup 'autocomplete' box under a form input, using results returned from an AJAX call. This code works fine in Firefox 6 and IE9 - it p
Solution 1:
Looks like "theDiv" is absolutely positioned, so to be absolutely sure :) you need to specify not only its top and left but also right and bottom (or width and height.) Please see this for more details on the element rendering in your case.
Solution 2:
I am not sure if this is what you need. But I had a similar issue. I was dynamically adding input boxes on my page on a button click event. When the input boxes were not getting added on button click event in Chrome my script tag was as follows :
<scripttype="text/x-javascript"language="javascript">
Notice that the type is text/x-javascript . And then I changed it to text/javascript and it worked then. I just solved this issue so don't know the difference between the two types.
Post a Comment for "Chrome Not Displaying Javascript Createelement Div Correctly?"