我有一个文本区域同步两个HTML元素
<textarea id="realAreaWhereUserTypes"></textarea>
,我有一个隐藏的输入字段liek跟随。
<input id="hiddenUserInput" />
TextArea所包含的价值就像如下:
This is my friend @bingo_mingo and this is my another friend @lingo_tingo
隐藏字段的字段包含相同的文字,但在不同的格式。
This is my friend @a142f2f0-1eda-11e3-ad5f-3c970e02b4ec:bingo_mingo and this is my another friend @a143edr0-1eda-11e3-ad5f-3c970e02b4ec:lingo_tingo
我想要这两个字段进行同步。每当我从真正的文本区域删除一些东西隐藏应该得到更新。如果我开始在主文本中删除@admin_admin隐藏的文本应该相应地更新。
是否有任何jQuery插件可用于此。