본문 바로가기

Developer/Javascript & jQuery101

[jQuery] select box정복하기 data- var searchLongMajorSeq = $('#onChange_searchLongMajorSeq option:selected').val(); # 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 Title main text 1 main text 2 main text 3 main text 4 $(function () { $("#opt1").on("change", function () { var value = $(this).val(); // var subValue = $(this).find("option:selected").data("sub"); // var subValue = $(this).find(':selected')... 2023. 11. 7.
[jQuery] Cytoscape 카테고리 분류 https://cytoscape.org/download.html Download Cytoscape Problems? Read this page first cytoscape.org 2023. 9. 4.
[Javascript] request 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 var Request = function() { this.getParameter = function(name) { var rtnval = ''; var nowAddress = unescape(location.href); var parameters = (nowAddress.slice(nowAddress.indexOf('?') + 1, nowAddress.length)).split('&'); for (var i = 0; i 2022. 8. 25.
[jquery] 화면로딩 후 스크롤 최상위로 올리기 $(window).load(function(){ $(".pop3").focus(); $('html, body').animate({ scrollTop: $('.pop3').offset().top }, 'slow'); }); 2022. 8. 23.
[jQuery] jquery ready 좀 깔끔하게 쓰자. @ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 $(window).on('load', function(){ title_copy('타이틀); }); $(document).ready(function(){ $(document) .on('click','.클래스명', function (e) { var linkTarget = $(this).closest('.클래스명'); if (linkTarget.hasClass('on')==true) { $('.클래스명').removeClass('on'); } else { $('.클래스명').removeClass('on'); $(this).closest('.클래스명').addClass('on'); } return false; }.. 2022. 7. 25.