SEONG

  • home
  • guestbook
  • write
  • Java
  • jQuery
  • javascript
  • Spring
  • Web
  • Database
  • WAS
  • Network
  • Music
  • etc

Programming/jQuery 22

[jQuery] select box 관련

select box 관련 select box id로 선택된 값 읽기$("#ID option:selected").val(); select box name으로 선택된 값 읽기$("select[name = NAME]").val(); 선택 값의 indexvar index = $("#ID option").index($("#ID option:selected")); select box에 option값 추가하기$("#ID").append("1번"); select box option의 맨 앞에 추가 할 경우$("#ID").prepend("0번"); select box의 html 전체를 변경할 경우$("#ID").html("1번2번"); 직접 index 값을 주어 selected 속성 주기$("#ID option:eq(1..

Programming/jQuery 2014.03.19

[jQuery] when() 함수

jQuery.when(defrreds) : deferreds에 대한 처리 후 콜백처리 $.when($.ajax("test.aspx")).done(function(){alert("ajax 처리 후 실행");}) 동시에 2개의 ajax를 콜하고 모두 성공적으로 종료한 후에 무언가를 실행해야 할 경우var when1 = $.ajax("test1.aspx");var when2 = $.ajax("test2.aspx"); $.when(when1, when2).done(function(){alert("when1, when2 처리 후 실행");}); done(), then()의 차이done() : ajax가 성공일때 콜백함수 호출$.when($.ajax("test.aspx")).done(function(){alert(..

Programming/jQuery 2014.03.19
이전
1 2 3
다음
더보기
프로필사진

SEONG

  • Category
    • Programming
      • java
      • jQuery
      • javascript
      • Spring
      • Python
      • Web
      • DB
      • WAS
      • network
      • algorithm
      • etc
    • Music
    • News
      • IT
      • 경제/금융
      • 사회
    • Hobby/Life

Tag

JavaScript, jQuery, spring, ajax post, java, Empire OST, algorithm, rest api, fast and furious7, WAS, Plies, db, jeus, web, music, AOP, furious7 ost, 알고리즘, spring json, ibatis,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

  • SEONG IL-MAN

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/05   »
일 월 화 수 목 금 토
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 28 29 30 31

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바