Call controller function on button clik isn't working. |
[eluser]Rahul gamit[/eluser]
I want to call a function from controller on button click, but whenever i am clicking it it want calls to that function. here is my code. Code: <body>
[eluser]Phil Sturgeon[/eluser]
As I have said on StackOverflow, you need to give more information. "Doesn't work" is bloody useless.
[eluser]seeraw[/eluser]
Hello Rahul gamit, First, if you want to perform any action on button click input type should be "button" not submit it will work but may not give you correct result Second, you can use below code <input type="button" name="SOMENAME" id="SOMEID"> Then in that function you can call ajax through which you can call your function from controller (URL parameter in ajax) with that function you can perform the operation you want. Thanks, Swapnil
|
Welcome Guest, Not a member yet? Register Sign In |