1.form框
<form>
<input type="text" name="phone" id="phone" value="" readonly/> <a href="javascript:;" οnclick="jump()" id="chgph">更换手机号码</a></form>
2.jquery代码
<script type="text/javascript"> function jump(){ $('#chgph').css('display', 'none'); $('#phone').attr("readonly",false); } </script>