这是我下面的代码:
<form name="mainform" id="mainform" class="form_step" action="" method="post" enctype="multipart/form-data">
<ol>
<li id="list_cp_ad_type">
<div class="labelwrapper">
<label>
<a href="#" tip="Choose your ad type" tabindex="999" title="Choose your ad type">
<div class="helpico"></div>
</a>Ad Type: <span class="colour">*</span>
</label>
</div>
<ol class="radios">
<li><input value="Offer Ads" type="radio" class="radiolist required" name="cp_ad_type" id="cp_ad_type"> Offer Ads</li>
<li><input value="Wanted Ads" type="radio" class="radiolist required" name="cp_ad_type" id="cp_ad_type"> Wanted Ads</li>
</ol>
<div class="clr"></div>
</li>
预期代码:
<form name="mainform" id="mainform" class="form_step" action="" method="post" enctype="multipart/form-data">
<ol>
<li id="list_cp_ad_type">
<div class="labelwrapper">
<label>
<a href="#" tip="Choose your ad type" tabindex="999" title="Choose your ad type">
<div class="helpico"></div>
</a>Ad Type: <span class="colour">*</span>
</label>
</div>
<ol class="radios">
<li><input value="Offer Ads" type="radio" class="radiolist required" name="cp_ad_type" id="cp_ad_type">I Offer this</li>
<li><input value="Wanted Ads" type="radio" class="radiolist required" name="cp_ad_type" id="cp_ad_type">I Want this</li>
</ol>
<div class="clr"></div>
</li>
我只想将“Offer Ads”文本转换或更改为“I Offer this”文本,将“Wanted Ads”文本转换或更改为“I Want this”文本,而不是 id="cp_ad_type" 的输入值也立即生效在页面加载。
任何人请帮助我..