Passing parameters to a JQuery function

后端 未结 5 696
小鲜肉
小鲜肉 2020-12-04 07:23

I\'m creating HTML with a loop that has a column for Action. That column is a Hyperlink that when the user clicks calls a JavaScript function and passes the parameters...

5条回答
  •  伪装坚强ぢ
    2020-12-04 08:22

    If you want to do an ajax call or a simple javascript function, don't forget to close your function with the return false

    like this:

    function DoAction(id, name) 
    { 
        // your code
        return false;
    }
    

提交回复
热议问题