LANG SELRCT

Apps Script Reference  (Create: Create new Spreadsheet | Create new Apps Script

Sunday, April 22, 2018

テキストボックスに削除ボタンを付ける


以下のように入力文字を削除する×アイコンを右端に表示する


ブラウザによって異なるようですが
以下の確認した環境では

<input type="search">

で表示できました


確認した環境
chrome バージョン: 65.0.3325.181(Official Build) (64 ビット)



コード.gs
function doGet() {
  return HtmlService.createHtmlOutputFromFile("index");
}
意訳
この機能がやること
指定したHTMLファイルを表示する




index.html
<!DOCTYPE html>
<html>
  <body>
    <input type="search">
  </body>
</html>
意訳
これはHTML5文書です


searchボックス




Latest post

Creating a template copier app in Google Apps Script

Introduction This article will show you a template copier application in Google Apps Script.  This application will automatically copy a t...