doutang1992
2013-05-21 17:41
浏览 29

在基于php的JQUERY UI对话框中使用2个标题图像

I have a php condition and need two different images to potentially display. Is there some way to create two different titles for different classes? Or maybe a different way in the jquery? Right now I changed the CSS background img of my dialog box to a custom one. Is it possible to somehow delete this background attribute for the title div when the pop_out div is present? Not sure you need to see it but my php is something like below, and I need a different title for both situations, and really am just lost at the moment on how to do it. Thanks

if ($out_of_stock != 'Y') { 
 <div id="pop_in">
 </div>
} else{
 <div id="pop_out">
</div>
}
  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • doumei4964 2013-05-21 22:50
    已采纳

    Was actually easy just added this in the ajax call after my dialog call

     if ($('#pop_out').length){
        $('.ui-dialog-titlebar').css('background', 'none');
      }
    
    点赞 打赏 评论

相关推荐 更多相似问题