私はこれらをたくさん持っており、ユーザーが[最大化]をクリックすると、divが展開されてコンテンツが表示されます。コンテンツが下に切り替わると、下部に最小化するリンクが表示されます。そのリンクをクリックすると正しく切り替わります。現在、jQueryはクリックされたリンクのテキストのみを変更するため、最初のリンクのテキストを変更する方法を探しています。これを簡単に行う方法はありますか?何かを使用しParent()
てChild()
からトップテーブルに戻るにはa
?
トグルするときは、両方 #bridge
を+ Expand
またはに変更する必要があり- Minimize
ます。
javascript
<script type="text/JavaScript" language="javascript">
$(document).ready(function() {
$(".expand").click(function(e) {
e.preventDefault();
var toggle = $(this).attr('href');
var txt = $(this).text() == '+ Expand' ? '- Minimize' : '+ Expand';
$(this).text(txt);
$(toggle).slideToggle('fast', function() {
});
});
});
</script>
HTML
<!--Drop Down -->
<div>
<b class='bdrround'>
<b class='bdrround1'><b></b></b>
<b class='bdrround2'><b></b></b>
<b class='bdrround3'></b>
<b class='bdrround4'></b>
<b class='bdrround5'></b></b>
<div class='bdrroundfg'>
<table width='100%' class='pagehead'>
<tr>
<td width='80%' class='pagehead'>
<h2><a name='bureau'></a>Approved Bridging Statements (Optional):</h2>
</td>
<td width='20%' class='pagehead'>
<p align='right'><a href='#bridge' id="expand" class='expand'>+ Expand</a></p>
</td>
</tr>
</table>
<div id='bridge' class='faqcontainer' style='display:none;'>
<p>
<b>Operational Direction: </b>These should be used to bring the customer back into the conversation and
to transition into FAQs, Resolving Objections and overall general conversational flow.
These statements are designed to let the customer know that we are listening, that his/her opinion is
important and that we realize the value of that opinion.
</p>
<p>
<b>BRIDGING STATEMENTS:</b>
<ul>
<li>Now with that in mind …</li>
<li>That's an excellent question…</li>
<li>I hear what you are saying and…</li>
<li>I can (certainly) understand that and…</li>
<li>That's a very good point…</li>
<li>Please keep in mind…</li>
<li>I can understand your hesitation, but…</li>
<li>I can appreciate that…</li>
<li>Thank you </li>
<li>Perfect </li>
<li>Great </li>
<li>One moment please </li>
<li>Excellent</li>
<li>That’s great, now…</li>
<li>That’s correct</li>
<li>Let me clarify that for you</li>
</ul>
<span class="note">Note to Rep: </span>Use of Mr. or Ms. can be added throughout the call as appropriate
to help build rapport with the customer.
</p>
<p>
<span class="note">[Note to Rep: Ensure all service needs are satisfied before offering.]</span>
</p>
<p>
[<span class="note">Directional:</span> If during the servicing of the call the customer mentioned
they were retired, unemployed, or working less than 30 hours per week, go to:
<a href="#">PS Basic Counter Offer Transition</a>]
</p>
<p align='right'><a href="#bridge" id="A2" class='expand'>- Minimize</a></p>
</div>
<b class='bdrround'>
<b class='bdrround5'></b>
<b class='bdrround4'></b>
<b class='bdrround3'></b>
<b class='bdrround2'><b></b></b>
<b class='bdrround1'><b></b></b></b>
</div>
<div class='hrSectDiv'></div>
</div>