What to use with Jquery for Div html , innerHtml Or text?
I was working on project which uses Google maps. We allow users to create polygon on the Google map and when user starts drawing polygon we were to show tool tips, you can read how we are showing tooltips using Jquery on teh googel maps here [http://www.isolutionteam.co.uk/show-tooltip-on-google-map-polygon-drag-handle-using-jquery/].
Tool tip were worked great in all three browsers IE 7, Firefox 3.6.4 and Chrome 4.1.249. Then there was a requirement to change tool tip text on every click of mouse on the map. This process invoice to count vertices of polygon on the map.
I E was going mad on second click when I was using $(“#maptooltipcontainer”).html(toolTipText). but it worked fine with Firefox and chrome versions mentioned above.
Then i changed $(“#maptooltipcontainer”).text(toolTipText). and it started working on all three browsers.