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');
      }
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!