$('#footer .select_area select').on('change', function () {
console.log($(this).val());
});
$('#footer .select_area select').on('change', function () {
// location.href = $(this).val();
window.open($(this).val(), '_black');
});
๋น์นธ์ด ๋ ๋ฒ๋ฆผ
$('#footer .select_area select').on('change', function () {
// location.href = $(this).val();
if ($(this).val()) {
window.open($(this).val(), '_black');
}
});
๋น์นธ์ ๋๋ฌ๋ ์์ฐฝ์ด ๋จ์ง์๊ณ ์ฒด์ธ์ง๊ฐ์๋จ
๋ค์๋์์๋ ๋์ผ
$('#footer .select_area select').on('change', function () {
// location.href = $(this).val();
if ($(this).val()) {
// option์ ๊ฐ์ด ์์ ๊ฒฝ์ฐ๋ง ์์ฐฝ๋์ฐ๊ธฐ
window.open($(this).val(), '_black');
// ํ์ฌ์ฐฝ๋์ฐ๊ธฐ
location.href = $(this).val();
}
});
'CSS๐ง > ๋ฐ์ํ' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
๋ฐ์ํ์ ์ํ๊ธฐ ๋ ์ด์์๊ตฌ์ฑ (0) | 2022.11.28 |
---|---|
๋ฐ์ํ font-size rem ๋จ์ (0) | 2022.11.28 |
๋ฏธ๋์ด์ฟผ๋ฆฌ๋ก 320 ํ๋ฉด ๋์ํ๊ธฐ (0) | 2022.11.18 |
์์ดํฐ ๋ฐฐ๊ฒฝ fixed ์ด ๋ฐ์์๋จ (0) | 2022.11.17 |
๋ชจ๋ฐ์ผ ์ ํ๋ธ ๋น์จ์กฐ์ (0) | 2022.11.16 |
๋๊ธ