Last active
December 10, 2015 21:08
-
-
Save itsPG/4493013 to your computer and use it in GitHub Desktop.
依貝特報名網 快速填單工具
使用方法:用Chrome開啟目標的報名頁面之後 ctrl+shift+J,貼上這段程式碼然後按下enter即可
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
依貝特報名網 快速填單工具 | |
使用方法:用Chrome開啟目標的報名頁面之後 ctrl+shift+J,貼上這段程式碼然後按下enter即可 | |
by PG @ SENSE Lab | |
Copyright (C) 2013 | |
Released under MIT License | |
*/ | |
var PG_select_option = function(target_ID, target_option) | |
{ | |
$(target_ID).children().each(function() | |
{ | |
if ($(this).text() == target_option) | |
{ | |
$(this).attr("selected", true); | |
$(this).trigger("change"); | |
} | |
}); | |
} | |
$("#txtName").attr("value", "名字"); | |
$("#txtID").attr("value","A123456789"); | |
$("#txtMobile").attr("value", "0912345678"); | |
$("#txtTelDay").attr("value", "0240666888"); | |
$("#txtTelNight").attr("value", "0240666888"); | |
PG_select_option("#txtBirthday_selectYear", "2013"); | |
PG_select_option("#txtBirthday_selectMonth", "01"); | |
PG_select_option("#txtBirthday_selectDay", "01"); | |
PG_select_option("#ddlAddrCId", "台北"); | |
setTimeout("PG_select_option(\"#ddlAddrAreaId\", \"天龍區\")", 500); | |
$("#txtAddress").attr("value", "剩下的住址"); | |
$("#txtEmail").attr("value", "email@gmail.com"); | |
$("#txtUrgentContact").attr("value", "緊急聯絡人姓名"); | |
$("#txtUrgentTel").attr("value", "緊急聯絡人手機"); | |
$("#txtUrgentRelationship").attr("value", "緊急連絡人關係"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment