开发者

Problem with jquery function call

I am newbie with jquery and ajax. I have used a href to show and hide particular division with JQuery. In that div I am fetching records from database using ajax with some function. I don't know how to call that function on div on show.

Other option I ha开发者_如何学运维ve is on show button (that I used to view division) I call that function. But let me know how to call function on show button.

$('.childinfoshow').click(function() {
$(this).showchild(pgid); 
$(".childinfoshow").hide();

I have used this code but we above code I need to send pgid as argument and pgid is session value in php. How can I achieve both things.


Something like this

$('.childinfoshow').click(function() {
   showchild(pgid); 
   $(".childinfoshow").hide();
});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜