javascript - Simple String and variable problem using jQuery -


I am trying to add my string to this string:

  var liPad = 20; $ (This). CSS ({'width': width, 'height': height, 'padding': "'0 pixel' + lipad + 'px'"});  

To work this way:

  $ (this) .css ({'width': width, 'height': height, Padding ':' 0 20px '});  

"post-text" itemprop = "Text">

This should work:

  $ (this) .css ({'width': width, 'height': height, 'padding': '0' + Lipad + 'px'});  

Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -