English 中文(简体)
失踪:在财产补贴之后
原标题:missing : after property id
  • 时间:2010-08-02 01:53:16
  •  标签:
  • jquery

I m a jquery novice.I got 失踪:在财产错误出现在火焰中。 我对这部法典有什么错误没有多少想法。

$( #mytable tr ).click(function(){
   $(this).animate({padding-left:  +=50px }, 2000);
  }, function(){
   $(this).animate({padding-left:  -=50px }, 2000);
  });
问题回答

页: 1 如上所示,你要么需要 patter-left”,要么需要 pa切除Left ,以换取财产名称,如:

$( #mytable tr ).toggle(function(){
  $(this).animate({ padding-left :  +=50px }, 2000);
}, function(){
  $(this).animate({ padding-left :  -=50px }, 2000);
});

或者:

$( #mytable tr ).toggle(function(){
  $(this).animate({paddingLeft:  +=50px }, 2000);
}, function(){
  $(this).animate({paddingLeft:  -=50px }, 2000);
});

rel=“nofollow noreferer”>animate(>, 资本载于http://gitub.com/cj/j/cquejrys/ 转载于封面的<条码>。

Edit: https://stackoverflow.com/users/251986/reigel。 Reigel 在评论中指出,你可以将多个职能约束在<条码>click上,I think<>。 页: 1 这就是我前面所述,这在每一次<代码>click活动上的职能之间互换。

- isnt valid for real keys in Object states. 你们需要用 da子在任何钥匙周围进行包装。

为此:

$( #mytable tr ).click(function(){
  $(this).animate({"padding-left":  +=50px }, 2000);
}, function(){
  $(this).animate({"padding-left":  -=50px }, 2000);
});

EDIT: 您指的是toggle,而不是click?





相关问题
getGridParam is not a function

The HTML: <a href="javascript:void(0)" id="m1">Get Selected id s</a> The Function: jQuery("#m1").click( function() { var s; s = jQuery("#list4").getGridParam( selarrrow )...

selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

jQuery cycle page with links

I am using the cycle plugin with pager functionality like this : $j( #homebox ) .cycle({ fx: fade , speed: fast , timeout: 9000, pager: #home-thumbs , ...

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

jConfirm with this existing code

I need help to use jConfirm with this existing code (php & Jquery & jAlert). function logout() { if (confirm("Do you really want to logout?")) window.location.href = "logout.php"; } ...

Wrap text after particular symbol with jQuery

What I m trying to do, is wrap text into div inside ll tag. It wouldn t be a problem, but I need to wrap text that appears particularly after "-" (minus) including "minus" itself. This is my html: &...