What is the differnce between these two types using jquery

Posted by kumar on Stack Overflow See other posts from Stack Overflow or by kumar
Published on 2010-05-04T20:34:04Z Indexed on 2010/05/04 21:08 UTC
Read the original article Hit count: 157

Filed under:

hi,

 $('tr td:first-child').click(function() {
        var foobar = $(this).text();
        $("#showgrid").load('/Product/List/Item?id=' + foobar);
    });

when I am seding foobar value like this in the Actionresult method I am getting string id value perfectly but I am not able to display the grid?

but intresting thing is when I am seding like this

 $("#showgrid").load('/Product/List/Item?id=' + "12345");

then I am able to display the grid.. foobar result is same 12345..

what is the differnt between these two types?

can any body help me out..

thanks

© Stack Overflow or respective owner

Related posts about jQuery