LoginSignup
0
0

More than 1 year has passed since last update.

jquery.jpostal.jsで自動入力が反映されない

Posted at

はじめに

jquery.jpostal.jsで自動入力された先がselect2だった場合、値が反映されなかった
(selectタグだと正常に自動入力された)

解決方法

triggerオプションを追加することで自動入力された値の変更を検知できるようになる

		trigger : {
			'#address1_kana'  : true,
			'#address2_kana'  : true,
			'#address3_kana'  : false
		}

参考文献

「jquery.jpostal.js」で自動入力された値に反応して特定要素のテキスト変更とクラスの付与をしたい

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0