jQuery判断某个元素是否存在某个样式

<input type="button" class="new"/>
$("input[name=new]").hasClass("new");

jQuery动态改变背景图片

$('.pop-box').css("background-image","url(\"<%=request.getContextPath() %>/img/wishes/"+data+".jpg\")");