私はJavaScript/jQueryを初めて使用するので、ここでいくつかの支援を行うことができます。フォームに次の入力があります。
<div class="form-group">
<button type="button" class="btn btn-default navbar-btn" data-toggle="button tooltip"
data-placement="right" title="Use your exact location" name="geoloc" id="geoloc">
<li class="icon-screenshot"></li>
</button>
</div>
<div class="form-group">
<input type="text" class="form-control" placeholder="Address" name="address"
id="address">
<input name="lat" type="hidden" value="">
<input name="lng" type="hidden" value="">
</div>
テキスト ボックスが冗長になるため、ユーザーが geoloc トグル ボタン (フォームが正確な位置を使用することを意味します) をクリックすると、住所入力テキスト ボックスを無効にしようとしています。
geoloc 入力クラスがアクティブなときにブラウザに「無効」属性をアドレス入力に適用させ、geoloc ボタンにアクティブなクラスがないときにアドレス入力を有効にするにはどうすればよいですか?