The page has a selection box like this:
<?php echo html::select('module', $modules, '', "class=' form-control chosen' ")?>
<!DOCTYPE html>
<html>
<head>
?? ?<title></title>
?? ?<meta charset="utf-8">
</head>
<body>
<script src="http://libs.baidu.com/jquery/2.1.4/jquery.min.js"></script>
<label>請選擇:</label>
<select name="source">
?? ?<option>chargeMoney1</option>
?? ?<option>chargeMoney2</option>
?? ?<option>chargeMoney3</option>
?? ?<option>chargeMoney4</option>
</select>
<br>
<label>請查看:</label><input type="text" name="target" value="" placeholder="">
<script type="text/javascript">
?? ?$('select[name=source]').on('change',function(){
?? ??? ?// body...
?? ??? ?var source = '';
?? ??? ?source = $(this).val();
?? ??? ?$('input[name=target]').attr('placeholder',source);
?? ?})
</script>
</body>
</html>?? ?
##PHP writes an interface to return the corresponding placeholder content. The front end uses ajax to call this interface and overwrite the previous placeholder with the returned content.