Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 9th, 2012  |  syntax: None  |  size: 0.37 KB  |  hits: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Jquery in javascript function require two clicks
  2. <a onclick="update(1)"> Let's update<a/>
  3.  
  4.   function update(id)
  5.   {
  6.   $("#edit" + id).kb_edit();  
  7.   }
  8.        
  9. <a id="myAnchor">Let's update</a>
  10.  
  11. $(document).ready(function() {
  12.    $("#myAnchor").click(function(){
  13.         ///put your update code here including the kb_edit code
  14.    });
  15. });
  16.        
  17. $(".myAnchor").click(function(){