Add an onload function similar to the following to <head> section of your web page. <script type=”text/javascript”> function onload_call() { if (!document.getElementById) return false; var f = document.getElementById(‘field_name’); f.setAttribute(“autocomplete”, “off”); } </script>
Category: jQuery
Checking / Unchecking radio buttons and retrieving their value in jQuery
Let us assume we have radio buttons <input name=”rd_name” id=”RD1″ value=”Value One” /> Label 1 <input name=”rd_name” id=”RD2″ value=”Value Two” /> Label 2 To retrieve and set radio button values by id we have the following methods. To retrieve we…
How to position a pop up element on mouse position coordinates with jquery
Here is a simple yet useful trick to position a tooltip (a div element etc) near the mouse click or pointer position using jQuery. In the example here, we have a tool tip (div) with id “tooltip”, a href tag,…
Limitation on the number of characters in jquery ajax response
The following jquery ajax call would return approx. 8442 characters in its “html” response. Content exceeding this number would be truncated.