Level 73
Here it is https://stackoverflow.com/a/45645783/1457270
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
@oxbir and is the jquery completely loaded before you run the script? Is the script added before you load your own script.js file?
Try to wrap it with the document ready event and see if that will change anything?
$(function(){
var editAddress = $('#editAddress');
editAddress.find('.close').click(function () {
editAddress.fadeOut(200);
$('.shopping #dark').fadeOut(200);
});
$('.editAddress').click(function () {
editAddress.fadeIn(200);
$('#dark').fadeIn(200);
});
})
Please or to participate in this conversation.