コードスニペットがあります:
<fieldset class="shareMe"><br />
<input type="checkbox" id="share_me" name="share_me" value="1" {if $default_share_pref}checked="checked"{/if} onclick="if (this.checked) { var perms = 'publish_stream'; fb_login_cached(function(response){ if (!response.perms.match(new RegExp(perms))) $('share_me').checked = false; }, perms); }"/>
<label for="share_me">Post this question to my friends on
<span class="">
<a class="fb_button fb_button_small">
<span class="fb_button_text">Facebook</span>
</a>
</span>.
</label>
</fieldset>
<label for .. >
CSSを介してフィールドのテキストを変更したい。
このスニペットの複製コピーを配置し、cssを使用して切り替えることでそれができることを私は知っています。しかし、私はそれを最小限のコード変更でやりたいです。CSSトリックを使用して<label for..>
テキストを変更し、内部のコードにまったく影響を与えていない可能性があり<label for...>
ます。