Welcome Guest, Not a member yet? Register   Sign In
jquery post
#1

[eluser]meera[/eluser]
Hi, i am using jquery to post the text box vales .
I want to post the text box values to display on another text box in submitted page.
i have used the following jquery function:
$(document).ready(function()
{
$("#edit").click(function()
{
alert("ok");

$.post("/product/editnew", {id:$("#id1").val(), gname: $("#gname").val(), disc: $("#disc").val() ,desc: $("#desc").val()
}, function (data) {
alert(data);

});

});
});
And i used the following controller code:
$pname=$this->input->Post('gname');
$disc=$this->input->Post('disc');
$desc=$this->input->Post('desc');
and passed these values to the view i want to display.



But i cant get the result ,can any one tell me solution .may i would got wrong becouse i am very new to CI.Thank u in advance.


Messages In This Thread
jquery post - by El Forum - 10-08-2010, 05:01 AM
jquery post - by El Forum - 10-08-2010, 07:47 AM
jquery post - by El Forum - 10-08-2010, 08:00 AM
jquery post - by El Forum - 10-08-2010, 09:11 AM
jquery post - by El Forum - 10-08-2010, 12:11 PM
jquery post - by El Forum - 10-08-2010, 09:31 PM
jquery post - by El Forum - 10-08-2010, 09:34 PM
jquery post - by El Forum - 10-08-2010, 09:40 PM
jquery post - by El Forum - 10-08-2010, 09:58 PM
jquery post - by El Forum - 10-08-2010, 10:02 PM
jquery post - by El Forum - 10-08-2010, 10:04 PM
jquery post - by El Forum - 10-08-2010, 10:21 PM
jquery post - by El Forum - 10-09-2010, 12:10 AM
jquery post - by El Forum - 10-12-2010, 10:09 AM



Theme © iAndrew 2016 - Forum software by © MyBB