際際滷

際際滷Share a Scribd company logo
个乘
丐乘  弌弌丐 亅丐
个乘
弌弌弌
FORM.ELEMENTS
亅仍亠仄亠仆 FORM 仄仂亢仆仂 仗仂仍亳 仗仂 亳仄亠仆亳 亳仍亳 仆仂仄亠, 亳仗仂仍亰
于仂亶于仂 document.forms[name/index].
ミ頴笑 仍亠仄亠仆 仂仄 form 仄仂亢仆仂 仗仂仍亳 舒仆舒仍仂亞亳仆仄 仂弍舒亰仂仄,
亳仗仂仍亰 于仂亶于仂 form.elements.
弌弌弌
FORM.ELEMENTS
仂亢亠 弍 仆亠从仂仍从仂 仍亠仄亠仆仂于  仂亟亳仆舒从仂于仄 亳仄亠仆亠仄.  舒从仂仄 仍舒亠
form.elements[name] 于亠仆亠 从仂仍仍亠从亳 仍亠仄亠仆仂于.
弌仍从舒 仆舒 仂仄 element.form
仂 仍亠仄亠仆 仄仂亢仆仂 仗仂仍亳 亠亞仂 仂仄, 亳仗仂仍亰 于仂亶于仂 element.form.
亳仄亠:
亅丐 LABEL
亅仍亠仄亠仆 label  仂亟亳仆 亳亰 舒仄 于舒亢仆 于 仂仄舒.
仍亳从 仆舒 label 亰舒亳于舒亠 从舒从 仂从亳仂于从舒 亳仍亳 从仍亳从 仆舒 仍亠仄亠仆亠 仂仄,
从 从仂仂仂仄 仂仆 仂仆仂亳.
 亟于舒 仗仂仂弍舒 仗仂从舒亰舒, 从舒从仂亶 仍亠仄亠仆 仂仆仂亳 从 label:
亅丐乘 INPUT  TEXTAREA
仍 弍仂仍亳仆于舒 亳仗仂于 input 亰仆舒亠仆亳亠 舒于亳/亳舒亠 亠亠亰 于仂亶于仂
value.
丐亠从亠亠 束仂仄亠亠仆仆仂亠損 仂仂礌亳亠 亟仍 checkbox 亳 radio 仆舒仂亟亳 于
于仂亶于亠 checked (true/false).
亅丐乘 SELECT  OPTION
弌亠仍亠从 于 JavaScript 仄仂亢仆仂 舒仆仂于亳 亟于仄 仗礆亳: 仗仂舒于亳于 亰仆舒亠仆亳亠
select.value, 仍亳弍仂 舒仆仂于亳于 于仂亶于仂 select.selectedIndex 于 仆仂仄亠 仆亢仆仂亶
仂仗亳亳.:
丕舒仆仂于从舒 selectedIndex = -1 仂亳亳 于弍仂.
弌仗亳仂从 仍亠仄亠仆仂于-仂仗亳亶 亟仂仗亠仆 亠亠亰 select.options.
仍亳 select 亟仂仗从舒亠 仄仆仂亢亠于亠仆仆亶 于弍仂 (舒亳弍 multiple), 仂 亰仆舒亠仆亳
仄仂亢仆仂 仗仂仍亳/舒仆仂于亳, 亟亠仍舒于 亳从仍 仗仂 select.options. 亳 仂仄
于弍舒仆仆亠 仂仗亳亳 弍亟 亳仄亠 于仂亶于仂 option.selected = true.
亅丐乘 SELECT  OPTION
new Option
舒舒仄亠:
text  仂亟亠亢亳仄仂亠,
value  亰仆舒亠仆亳亠,
defaultSelected 亳 selected 仗仂舒于亠 于 true, 仂弍 亟亠仍舒 仍亠仄亠仆
于弍舒仆仆仄.
亞仂 仄仂亢仆仂 亳仗仂仍亰仂于舒 于仄亠仂 document.createElement('option'),
仆舒仗亳仄亠:
丐舒从仂亶 亢亠 仍亠仄亠仆, 仆仂 于弍舒仆仆亶:
亅丐乘 SELECT  OPTION
仂仗仂仍仆亳亠仍仆亠 于仂亶于舒 option
丕 仍亠仄亠仆仂于 option 舒从亢亠 亠 仂仂弍亠 于仂亶于舒, 从仂仂亠 仄仂亞 仂从舒亰舒
仗仂仍亠亰仆仄亳
selected
于弍舒仆舒 仍亳 仂仗亳
index
仆仂仄亠 仂仗亳亳 于 仗亳从亠 亠仍亠从舒
text
丐亠从仂于仂亠 仂亟亠亢亳仄仂亠 仂仗亳亳 (仂, 仂 于亳亟亳 仗仂亠亳亠仍).
个丕弌: FOCUS/BLUR
弌仂弍亳 focus/blur
弌仂弍亳亠 focus 于亰于舒亠 仂亞亟舒, 从仂亞亟舒 仗仂仍亰仂于舒亠仍 仂从亳亠 仆舒
仍亠仄亠仆亠, 舒 blur  从仂亞亟舒 仂从 亳亠亰舒亠
个丕弌: FOCUS/BLUR
亠仂亟 focus/blur
亠仂亟  亠仄亳 亢亠 仆舒亰于舒仆亳礆亳 仗亠亠于仂亟/于仂亟 仂从  仍亠仄亠仆舒.
: CHANGE, INPUT,
CUT, COPY, PASTE
弌仂弍亳亠 change
弌仂弍亳亠 change 仗仂亳仂亟亳 仗仂 仂从仂仆舒仆亳亳 亳亰仄亠仆亠仆亳亳 亰仆舒亠仆亳 仍亠仄亠仆舒
仂仄, 从仂亞亟舒 仂 亳亰仄亠仆亠仆亳亠 亰舒亳从亳仂于舒仆仂.
仍 亠从仂于 仍亠仄亠仆仂于 仂 仂亰仆舒舒亠, 仂 仂弍亳亠 仗仂亳亰仂亶亟 仆亠 仗亳
从舒亢亟仂仄 于于仂亟亠, 舒 仗亳 仗仂亠亠 仂从舒.
仍 仂舒仍仆 亢亠 仍亠仄亠仆仂于: select, input type=checkbox/radio 仂仆仂
舒弍舒于舒亠 舒亰 仗亳 于弍仂亠 亰仆舒亠仆亳.
: CHANGE, INPUT,
CUT, COPY, PASTE
弌仂弍亳亠 input
弌仂弍亳亠 input 舒弍舒于舒亠  亢亠 仗亳 亳亰仄亠仆亠仆亳亳 亰仆舒亠仆亳 亠从仂于仂亞仂
仍亠仄亠仆舒 亳 仗仂亟亟亠亢亳于舒亠 于亠仄亳 弍舒亰亠舒仄亳, 从仂仄亠 IE8-.
 IE9 仂仆仂 仗仂亟亟亠亢亳于舒亠 舒亳仆仂, 舒 亳仄亠仆仆仂  仆亠 于仂亰仆亳从舒亠 仗亳 亟舒仍亠仆亳亳
亳仄于仂仍仂于 (从舒从 亳 onpropertychange).
IE10-, 弌乘丐
PROPERTYCHANGE
亅仂 仂弍亳亠 仗仂亳仂亟亳 仂仍从仂 于 IE10-, 仗亳 仍ミ頴笑 亳亰仄亠仆亠仆亳亳 于仂亶于舒.
仆仂 仗仂亰于仂仍磳 仂仍舒于仍亳于舒 亳亰仄亠仆亠仆亳亠  亢亠. 仆仂 仆亠舒仆亟舒仆仂亠, 亳 亠亞仂
仂仆仂于仆舒 仂弍仍舒 亳仗仂仍亰仂于舒仆亳  亳仗舒于仍亠仆亳亠 仆亠亟仂仂于 仂弍舒弍仂从亳
仂弍亳亶 于 舒 IE.
仍亳 仗仂舒于亳 亠亞仂 仆舒 checkbox 于 IE8-, 仂 仗仂仍亳 束仗舒于亳仍仆仂亠損
仂弍亳亠 change:
 仂亢舒仍亠仆亳, 于 IE9  仆亠亞仂 仆亠亟仂: 仂仆仂 仆亠 舒弍舒于舒亠 仗亳 亟舒仍亠仆亳亳
亳仄于仂仍仂于. 仂仂仄 仂亠舒仆亳 onpropertychange + oninput 仆亠亟仂舒仂仆仂,
仂弍 仗仂亶仄舒 仍ミ頴笑 亳亰仄亠仆亠仆亳亠 仗仂仍 于 舒 IE.
IE10-, 弌乘丐
PROPERTYCHANGE
:  弌
丐 弌弌
弌仂弍亳亠 input 亳亟亠舒仍仆仂 亠亳 亰舒亟舒 于仂 于亠 弍舒亰亠舒, 从仂仄亠 IE9-.
弌仂弍于亠仆仆仂, 亠仍亳 IE9- 仆舒仄 仆亠 仆亢亠仆, 仂 仆舒 仂仄 仄仂亢仆仂 亳 仂舒仆仂于亳.
IE9-
 IE8- 仂弍亳亠 input 仆亠 仗仂亟亟亠亢亳于舒亠, 仆仂, 从舒从 仄 于亳亟亠仍亳 舒仆亠亠, 亠
onpropertychange, 从仂仂仂亠 仄仂亢亠 亰舒仄亠仆亳 亠亞仂.
丼仂 亢亠 从舒舒亠 IE9  舒仄 仗仂亟亟亠亢亳于舒ム 亳 input 亳 onpropertychange, 仆仂
仂仆亳 仂弍舒 仆亠 舒弍仂舒ム 仗亳 亟舒仍亠仆亳亳 亳仄于仂仍仂于. 仂仂仄 仄 弍亟亠仄
仂仍亠亢亳于舒 亟舒仍亠仆亳亠 仗亳 仗仂仄仂亳 keyup 仆舒 Delete 亳 BackSpace .  于仂
亟舒仍亠仆亳亠 从仂仄舒仆亟仂亶 束于亠亰舒損 亳亰 仄亠仆  仄仂亢亠 仂仍仂于亳 仍亳 oncut.
:  弌
丐 弌弌
亟亠 仄 亟仂弍舒于亳仍亳 于亰仂于 showCount 仆舒 于亠 仂弍亳, 从仂仂亠 仄仂亞
仗亳于仂亟亳 从 亳亰仄亠仆亠仆亳 亰仆舒亠仆亳. 舒, 亳仆仂亞亟舒 亳亰仄亠仆亠仆亳亠 弍亟亠
仂弍舒弍舒于舒 仆亠从仂仍从仂 舒亰, 仆仂 亰舒仂  亞舒舒仆亳亠亶.
:  弌
丐 弌弌
丼仂弍 从仂仆仂仄亳 亠 弍舒亰亠舒, 仄 仄仂亢亠仄 仆舒亳仆舒 仂仍亠亢亳于舒仆亳亠 仗仂
onfocus, 舒 仗亠从舒舒  仗仂 onblur, 于仂 舒从:

More Related Content

Featured (20)

How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
SocialHRCamp
2024 State of Marketing Report by Hubspot
2024 State of Marketing Report  by Hubspot2024 State of Marketing Report  by Hubspot
2024 State of Marketing Report by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
SocialHRCamp
2024 State of Marketing Report by Hubspot
2024 State of Marketing Report  by Hubspot2024 State of Marketing Report  by Hubspot
2024 State of Marketing Report by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius

Module 5

  • 1. 个乘 丐乘 弌弌丐 亅丐 个乘
  • 2. 弌弌弌 FORM.ELEMENTS 亅仍亠仄亠仆 FORM 仄仂亢仆仂 仗仂仍亳 仗仂 亳仄亠仆亳 亳仍亳 仆仂仄亠, 亳仗仂仍亰 于仂亶于仂 document.forms[name/index]. ミ頴笑 仍亠仄亠仆 仂仄 form 仄仂亢仆仂 仗仂仍亳 舒仆舒仍仂亞亳仆仄 仂弍舒亰仂仄, 亳仗仂仍亰 于仂亶于仂 form.elements.
  • 3. 弌弌弌 FORM.ELEMENTS 仂亢亠 弍 仆亠从仂仍从仂 仍亠仄亠仆仂于 仂亟亳仆舒从仂于仄 亳仄亠仆亠仄. 舒从仂仄 仍舒亠 form.elements[name] 于亠仆亠 从仂仍仍亠从亳 仍亠仄亠仆仂于. 弌仍从舒 仆舒 仂仄 element.form 仂 仍亠仄亠仆 仄仂亢仆仂 仗仂仍亳 亠亞仂 仂仄, 亳仗仂仍亰 于仂亶于仂 element.form. 亳仄亠:
  • 4. 亅丐 LABEL 亅仍亠仄亠仆 label 仂亟亳仆 亳亰 舒仄 于舒亢仆 于 仂仄舒. 仍亳从 仆舒 label 亰舒亳于舒亠 从舒从 仂从亳仂于从舒 亳仍亳 从仍亳从 仆舒 仍亠仄亠仆亠 仂仄, 从 从仂仂仂仄 仂仆 仂仆仂亳. 亟于舒 仗仂仂弍舒 仗仂从舒亰舒, 从舒从仂亶 仍亠仄亠仆 仂仆仂亳 从 label:
  • 5. 亅丐乘 INPUT TEXTAREA 仍 弍仂仍亳仆于舒 亳仗仂于 input 亰仆舒亠仆亳亠 舒于亳/亳舒亠 亠亠亰 于仂亶于仂 value. 丐亠从亠亠 束仂仄亠亠仆仆仂亠損 仂仂礌亳亠 亟仍 checkbox 亳 radio 仆舒仂亟亳 于 于仂亶于亠 checked (true/false).
  • 6. 亅丐乘 SELECT OPTION 弌亠仍亠从 于 JavaScript 仄仂亢仆仂 舒仆仂于亳 亟于仄 仗礆亳: 仗仂舒于亳于 亰仆舒亠仆亳亠 select.value, 仍亳弍仂 舒仆仂于亳于 于仂亶于仂 select.selectedIndex 于 仆仂仄亠 仆亢仆仂亶 仂仗亳亳.: 丕舒仆仂于从舒 selectedIndex = -1 仂亳亳 于弍仂. 弌仗亳仂从 仍亠仄亠仆仂于-仂仗亳亶 亟仂仗亠仆 亠亠亰 select.options. 仍亳 select 亟仂仗从舒亠 仄仆仂亢亠于亠仆仆亶 于弍仂 (舒亳弍 multiple), 仂 亰仆舒亠仆亳 仄仂亢仆仂 仗仂仍亳/舒仆仂于亳, 亟亠仍舒于 亳从仍 仗仂 select.options. 亳 仂仄 于弍舒仆仆亠 仂仗亳亳 弍亟 亳仄亠 于仂亶于仂 option.selected = true.
  • 7. 亅丐乘 SELECT OPTION new Option 舒舒仄亠: text 仂亟亠亢亳仄仂亠, value 亰仆舒亠仆亳亠, defaultSelected 亳 selected 仗仂舒于亠 于 true, 仂弍 亟亠仍舒 仍亠仄亠仆 于弍舒仆仆仄. 亞仂 仄仂亢仆仂 亳仗仂仍亰仂于舒 于仄亠仂 document.createElement('option'), 仆舒仗亳仄亠: 丐舒从仂亶 亢亠 仍亠仄亠仆, 仆仂 于弍舒仆仆亶:
  • 8. 亅丐乘 SELECT OPTION 仂仗仂仍仆亳亠仍仆亠 于仂亶于舒 option 丕 仍亠仄亠仆仂于 option 舒从亢亠 亠 仂仂弍亠 于仂亶于舒, 从仂仂亠 仄仂亞 仂从舒亰舒 仗仂仍亠亰仆仄亳 selected 于弍舒仆舒 仍亳 仂仗亳 index 仆仂仄亠 仂仗亳亳 于 仗亳从亠 亠仍亠从舒 text 丐亠从仂于仂亠 仂亟亠亢亳仄仂亠 仂仗亳亳 (仂, 仂 于亳亟亳 仗仂亠亳亠仍).
  • 9. 个丕弌: FOCUS/BLUR 弌仂弍亳 focus/blur 弌仂弍亳亠 focus 于亰于舒亠 仂亞亟舒, 从仂亞亟舒 仗仂仍亰仂于舒亠仍 仂从亳亠 仆舒 仍亠仄亠仆亠, 舒 blur 从仂亞亟舒 仂从 亳亠亰舒亠
  • 10. 个丕弌: FOCUS/BLUR 亠仂亟 focus/blur 亠仂亟 亠仄亳 亢亠 仆舒亰于舒仆亳礆亳 仗亠亠于仂亟/于仂亟 仂从 仍亠仄亠仆舒.
  • 11. : CHANGE, INPUT, CUT, COPY, PASTE 弌仂弍亳亠 change 弌仂弍亳亠 change 仗仂亳仂亟亳 仗仂 仂从仂仆舒仆亳亳 亳亰仄亠仆亠仆亳亳 亰仆舒亠仆亳 仍亠仄亠仆舒 仂仄, 从仂亞亟舒 仂 亳亰仄亠仆亠仆亳亠 亰舒亳从亳仂于舒仆仂. 仍 亠从仂于 仍亠仄亠仆仂于 仂 仂亰仆舒舒亠, 仂 仂弍亳亠 仗仂亳亰仂亶亟 仆亠 仗亳 从舒亢亟仂仄 于于仂亟亠, 舒 仗亳 仗仂亠亠 仂从舒. 仍 仂舒仍仆 亢亠 仍亠仄亠仆仂于: select, input type=checkbox/radio 仂仆仂 舒弍舒于舒亠 舒亰 仗亳 于弍仂亠 亰仆舒亠仆亳.
  • 12. : CHANGE, INPUT, CUT, COPY, PASTE 弌仂弍亳亠 input 弌仂弍亳亠 input 舒弍舒于舒亠 亢亠 仗亳 亳亰仄亠仆亠仆亳亳 亰仆舒亠仆亳 亠从仂于仂亞仂 仍亠仄亠仆舒 亳 仗仂亟亟亠亢亳于舒亠 于亠仄亳 弍舒亰亠舒仄亳, 从仂仄亠 IE8-. IE9 仂仆仂 仗仂亟亟亠亢亳于舒亠 舒亳仆仂, 舒 亳仄亠仆仆仂 仆亠 于仂亰仆亳从舒亠 仗亳 亟舒仍亠仆亳亳 亳仄于仂仍仂于 (从舒从 亳 onpropertychange).
  • 13. IE10-, 弌乘丐 PROPERTYCHANGE 亅仂 仂弍亳亠 仗仂亳仂亟亳 仂仍从仂 于 IE10-, 仗亳 仍ミ頴笑 亳亰仄亠仆亠仆亳亳 于仂亶于舒. 仆仂 仗仂亰于仂仍磳 仂仍舒于仍亳于舒 亳亰仄亠仆亠仆亳亠 亢亠. 仆仂 仆亠舒仆亟舒仆仂亠, 亳 亠亞仂 仂仆仂于仆舒 仂弍仍舒 亳仗仂仍亰仂于舒仆亳 亳仗舒于仍亠仆亳亠 仆亠亟仂仂于 仂弍舒弍仂从亳 仂弍亳亶 于 舒 IE. 仍亳 仗仂舒于亳 亠亞仂 仆舒 checkbox 于 IE8-, 仂 仗仂仍亳 束仗舒于亳仍仆仂亠損 仂弍亳亠 change: 仂亢舒仍亠仆亳, 于 IE9 仆亠亞仂 仆亠亟仂: 仂仆仂 仆亠 舒弍舒于舒亠 仗亳 亟舒仍亠仆亳亳 亳仄于仂仍仂于. 仂仂仄 仂亠舒仆亳 onpropertychange + oninput 仆亠亟仂舒仂仆仂, 仂弍 仗仂亶仄舒 仍ミ頴笑 亳亰仄亠仆亠仆亳亠 仗仂仍 于 舒 IE.
  • 15. : 弌 丐 弌弌 弌仂弍亳亠 input 亳亟亠舒仍仆仂 亠亳 亰舒亟舒 于仂 于亠 弍舒亰亠舒, 从仂仄亠 IE9-. 弌仂弍于亠仆仆仂, 亠仍亳 IE9- 仆舒仄 仆亠 仆亢亠仆, 仂 仆舒 仂仄 仄仂亢仆仂 亳 仂舒仆仂于亳. IE9- IE8- 仂弍亳亠 input 仆亠 仗仂亟亟亠亢亳于舒亠, 仆仂, 从舒从 仄 于亳亟亠仍亳 舒仆亠亠, 亠 onpropertychange, 从仂仂仂亠 仄仂亢亠 亰舒仄亠仆亳 亠亞仂. 丼仂 亢亠 从舒舒亠 IE9 舒仄 仗仂亟亟亠亢亳于舒ム 亳 input 亳 onpropertychange, 仆仂 仂仆亳 仂弍舒 仆亠 舒弍仂舒ム 仗亳 亟舒仍亠仆亳亳 亳仄于仂仍仂于. 仂仂仄 仄 弍亟亠仄 仂仍亠亢亳于舒 亟舒仍亠仆亳亠 仗亳 仗仂仄仂亳 keyup 仆舒 Delete 亳 BackSpace . 于仂 亟舒仍亠仆亳亠 从仂仄舒仆亟仂亶 束于亠亰舒損 亳亰 仄亠仆 仄仂亢亠 仂仍仂于亳 仍亳 oncut.
  • 16. : 弌 丐 弌弌 亟亠 仄 亟仂弍舒于亳仍亳 于亰仂于 showCount 仆舒 于亠 仂弍亳, 从仂仂亠 仄仂亞 仗亳于仂亟亳 从 亳亰仄亠仆亠仆亳 亰仆舒亠仆亳. 舒, 亳仆仂亞亟舒 亳亰仄亠仆亠仆亳亠 弍亟亠 仂弍舒弍舒于舒 仆亠从仂仍从仂 舒亰, 仆仂 亰舒仂 亞舒舒仆亳亠亶.
  • 17. : 弌 丐 弌弌 丼仂弍 从仂仆仂仄亳 亠 弍舒亰亠舒, 仄 仄仂亢亠仄 仆舒亳仆舒 仂仍亠亢亳于舒仆亳亠 仗仂 onfocus, 舒 仗亠从舒舒 仗仂 onblur, 于仂 舒从: