{"action":"created","issue":{"url":"https://api.github.com/repos/axisj/axisj/issues/649","labels_url":"https://api.github.com/repos/axisj/axisj/issues/649/labels{/name}","comments_url":"https://api.github.com/repos/axisj/axisj/issues/649/comments","events_url":"https://api.github.com/repos/axisj/axisj/issues/649/events","html_url":"https://github.com/axisj/axisj/issues/649","id":93413521,"number":649,"title":"axSelect에서 다중 select구현(ajax)시 임의의 기본 값을 가져오고 싶습니다.","user":{"login":"GoGillDong","id":5512509,"avatar_url":"https://avatars.githubusercontent.com/u/5512509?v=3","gravatar_id":"","url":"https://api.github.com/users/GoGillDong","html_url":"https://github.com/GoGillDong","followers_url":"https://api.github.com/users/GoGillDong/followers","following_url":"https://api.github.com/users/GoGillDong/following{/other_user}","gists_url":"https://api.github.com/users/GoGillDong/gists{/gist_id}","starred_url":"https://api.github.com/users/GoGillDong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoGillDong/subscriptions","organizations_url":"https://api.github.com/users/GoGillDong/orgs","repos_url":"https://api.github.com/users/GoGillDong/repos","events_url":"https://api.github.com/users/GoGillDong/events{/privacy}","received_events_url":"https://api.github.com/users/GoGillDong/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-07T01:20:40Z","updated_at":"2015-07-13T06:24:02Z","closed_at":null,"body":"안녕하세요\r\n\r\naxSelect 속성을 이용, 3개의 selectBox를 각각 ajax를 통하여 구현하고 있습니다.\r\n\r\n연도, 대학, 학과 selectBox가 각각 있다면 페이지 로딩시 연도 selectBox를 ajaxUrl, ajaxPars를 이용하여\r\n\r\n받아오고 onChange 속성으로 연도 selectBox 값 변경시 선택값을 대학, 학과를 받아오는 ajaxUrl, ajaxPars에 각각 넘겨줘서 뿌려주고 있습니다.\r\n\r\n![22](https://cloud.githubusercontent.com/assets/5512509/8536822/4d3d8a4e-2491-11e5-82d2-ab2670ca7ff5.png)\r\n\r\n최초 페이지 로딩시 대학, 학과는 선택하세요가 아닌 연도 selectBox의 0번째 값을 가져와서\r\n\r\n대학, 학과 ajaxUrl, ajaxPars에 넘겨주고 싶은데 잘 안됩니다..\r\n\r\n피드백 부탁드립니다.\r\n\r\n감사합니다.\r\n\r\n----------------------------------------------------------------------------------------------------------\r\n```js\r\n{ type:\"selectBox\", label:\"연도\", name: \"sYyyymm\", \r\n   \t\t\t\t  ajaxUrl: \"getYear\",\r\n\t\t\t\t\treserveKeys: {\r\n\t\t\t\t\t\toptions: \"list\",          // map key\r\n\t\t\t\t\t\toptionValue: \"YYYYMM\",    // 필드 명\r\n\t\t\t\t\t\toptionText: \"YYYYMM_NM\"   // 필드 명\r\n\t\t\t\t\t},\r\n\t   \t\t\t\tonchange: function(){\r\n\t   \t\t\t\t\t\r\n\t   \t\t\t\t\tvar univId = search.getItemId(\"univId\"); // getItemId()로 제어할 하위 SelectBox ID를 가져온다.\r\n\t   \t\t\t\t\t$(\"#\" + univId).bindSelect({\r\n\t   \t\t\t\t\t\tajaxUrl: \"getUniv\", // 하위 데이터 URL\r\n\t   \t\t\t\t\t\tajaxPars: \"sYyyymm=\"+this.optionValue, // this.optionValue 로 클릭된 값 가져올 수 있음\r\n\t   \t\t\t\t\t\talwaysOnChange: true,\r\n\t   \t\t\t\t\t\treserveKeys: {\r\n\t   \t\t\t\t\t\t\toptions: \"univList\",    // map key\r\n\t\t\t\t\t\t\t\toptionValue: \"UNIV_ID\", // 필드 명\r\n\t\t\t\t\t\t\t\toptionText: \"UNIV_NM\"   // 필드 명 \r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\tonchange: function() {\r\n\t\t\t\t\t\t\t\tvar sustId = search.getItemId(\"sustId\"); // getItemId()로 제어할 하위 SelectBox ID를 가져온다.\r\n\t\t       \t\t\t\t   \t$(\"#\" + sustId).bindSelect({\r\n\t\t       \t\t\t\t\t\tajaxUrl: \"getSust\", // 하위 데이터 URL\r\n\t\t       \t\t\t\t\t\tajaxPars: \"univId=\"+this.optionValue, // this.optionValue 로 클릭된 값 가져올 수 있음\r\n\t\t       \t\t\t\t\t\talwaysOnChange: true,\r\n\t\t       \t\t\t\t\t\treserveKeys: {\r\n\t\t       \t\t\t\t\t\t\toptions: \"sustList\",    // map key\r\n\t\t       \t\t\t                optionValue: \"SUST_ID\", // 필드 명\r\n\t\t       \t\t                   \toptionText: \"SUST_NM\"   // 필드 명 \r\n\t\t       \t\t\t\t\t\t}\r\n\t\t      \t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n                { type:\"selectBox\", label:\"단과대학\", name: \"univId\", options:[{optionValue:\"\", optionText:\"선택하세요\"}],\r\n//                 \tajaxUrl: \"getUniv\", // page 처음에 불러올때\r\n//                 \tajaxPars: \"sYyyymm=\" 이 부분에 연도selectBox 0번째 값을 할당하고 싶습니다!\r\n//    \t\t\t\t\treserveKeys: {\r\n//    \t\t\t\t\t\toptions: \"univList\",    // map key\r\n// \t\t\t\t\t\toptionValue: \"UNIV_ID\", // 필드 명\r\n// \t\t\t\t\t\toptionText: \"UNIV_NM\"   // 필드 명 \r\n// \t\t\t\t\t}\r\n                },\r\n```"},"comment":{"url":"https://api.github.com/repos/axisj/axisj/issues/comments/120825992","html_url":"https://github.com/axisj/axisj/issues/649#issuecomment-120825992","issue_url":"https://api.github.com/repos/axisj/axisj/issues/649","id":120825992,"user":{"login":"GoGillDong","id":5512509,"avatar_url":"https://avatars.githubusercontent.com/u/5512509?v=3","gravatar_id":"","url":"https://api.github.com/users/GoGillDong","html_url":"https://github.com/GoGillDong","followers_url":"https://api.github.com/users/GoGillDong/followers","following_url":"https://api.github.com/users/GoGillDong/following{/other_user}","gists_url":"https://api.github.com/users/GoGillDong/gists{/gist_id}","starred_url":"https://api.github.com/users/GoGillDong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoGillDong/subscriptions","organizations_url":"https://api.github.com/users/GoGillDong/orgs","repos_url":"https://api.github.com/users/GoGillDong/repos","events_url":"https://api.github.com/users/GoGillDong/events{/privacy}","received_events_url":"https://api.github.com/users/GoGillDong/received_events","type":"User","site_admin":false},"created_at":"2015-07-13T06:24:02Z","updated_at":"2015-07-13T06:24:02Z","body":"this.selectedObject.optionValue 사용해서 해결했습니다.\r\n\r\n감사합니다."}}