Use 2 Title Images in JQUERY UI Dialog based on php -
i have php condition , need 2 different images potentially display. there way create 2 different titles different classes? or maybe different way in jquery? right changed css background img of dialog box custom one. possible somehow delete background attribute title div when pop_out div present? not sure need see php below, , need different title both situations, , lost @ moment on how it.
if ($out_of_stock != 'y') { <div id="pop_in"> </div> } else{ <div id="pop_out"> </div> }
was easy added in ajax call after dialog call
if ($('#pop_out').length){ $('.ui-dialog-titlebar').css('background', 'none'); }
Comments
Post a Comment