SoFunction
Updated on 2025-03-01

JS code that changes content in multiple input boxes at the same time


[Ctrl+A Select all Note:Introducing external Js requires refreshing the page before execution]

Definition and usage
The onkeyup event occurs when the keyboard key is released.
grammar
onkeyup="SomeJavaScriptCode" parameter description
SomeJavaScriptCode is required. Specifies the JavaScript executed when the event occurs.
HTML tags that support this event:
<a>, <acronym>, <address>, <area>, <b>, <bdo>, <big>, <blockquote>, <body>,
<button>, <caption>, <cite>, <code>, <dd>, <del>, <dfn>, <div>, <dt>, <em>,
<fieldset>, <form>, <h1> to <h6>, <hr>, <i>, <input>, <kbd>, <label>, <legend>,
<li>, <map>, <object>, <ol>, <p>, <pre>, <q>, <samp>, <select>, <small>,
<span>, <strong>, <sub>, <sup>, <table>, <tbody>, <td>, <textarea>, <tfoot>,
<th>, <thead>, <tr>, <tt>, <ul>, <var>
JavaScript objects that support this event:
document, image, link, textarea instance
When you type characters into the input field in the example, the characters are changed to uppercase (one by one):

[Ctrl+A Select all Note:Introducing external Js requires refreshing the page before execution]