JSFiddle - React, Tailwind, and code Playground

by Hao Wu

HTML

<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<input type='text' id='ch' value='lalala' />

JavaScript

var no_other_exist_msg = '已存在其他筆「{1}」, 繼續儲存會將該員的其他資料標記為「非」{1}, 是否繼續?';
unique_cht_name = '最高學歷';
no_other_exist_msg = no_other_exist_msg.replace(/\{1\}/g, unique_cht_name);
$('#ch').val(no_other_exist_msg);