- Jquery in javascript function require two clicks
- <a onclick="update(1)"> Let's update<a/>
- function update(id)
- {
- $("#edit" + id).kb_edit();
- }
- <a id="myAnchor">Let's update</a>
- $(document).ready(function() {
- $("#myAnchor").click(function(){
- ///put your update code here including the kb_edit code
- });
- });
- $(".myAnchor").click(function(){