2012-08-24 49 views
0

我试图元素添加到类似以下如何添加元素的jQuery我变

$tooltipElement = $('#' + tooltipId); 

//I want to edit p element inside the tooltipElement variable. 
$tooltipElement.//<p>.css('font-size':'15'); 

我怎么做一个变量?非常感谢。

回答

3

.find

$tooltipElement.find('p').css('font-size', '15'); 

另外,你的意思是15px