attribute (2) 썸네일형 리스트형 [jquery] how to get custom attribute value HTML 100000 ~ 200000 200000 ~ 300000 300000 ~ 400000 400000 ~ 500000 500000 ~ 600000 js - jquery $('ul li').on('click', function(){ var rangeMinPrice = $(this).attr('rangeMinPrice'); var rangeMaxPrice = $(this).attr('rangeMaxPrice'); alert('rangeMinPrice : ' + rangeMinPrice + ' | rangeMaxPrice : ' + rangeMaxPrice); }); jsfiddle : https://jsfiddle.net/h5Lbb8wv/ [jQuery] to find checkbox and change attribute 1234567891011$(".Chk_Choice").click(function () { var parentChildren = $(this).parent().parent().parent().children(); var parentAllChecked = false; var isChecked = $(this).is(":checked"); var checkboxId = $(this).attr("id"); $.each(parentChildren.find("input[type=checkbox]"), function (index, item) { if (checkboxId != $(item).attr("id")) { $(item).attr("disabled", isChecked); } }); });Colored by.. 이전 1 다음