With the goal of displaying a modal that contains content from a section on another page when a link is clicked, I encountered a specific issue. For instance:
<a href="/otherpage" data-reveal-id="myModal" data-reveal-ajax="true">
Click Me For A Modal
The challenge lies in wanting to display only a portion of the page - specifically a section from an accordion dropdown that should be expanded within the modal. For example:
<dl class="accordion accorborder" data-accordion="">
<dd class="accordion-navigation">
<a href="#p1">Math Foundations I Sem 1</a>
<div id="p1" class="content">
<div class="row">
<div class="small-6 columns">
<h6>code:</h6>HS-ES-38
<h6>Offerings:</h6> xxx
</div>
<div class="small-6 columns">
<h6>Course Materials:</h6>
<ul>
<li><a href="xxx">Syllabus</a></li>
<li><a href="xxx">Course Contract</a></li>
<li><a href="xxx">White Board</a></li>
</ul>
</div>
</div>
<p>blah</p>
<dl class="tabs" data-tab="">
<dd class="active"><a href="#p1a">Study Sheets</a></dd>
<dd><a href="#p1b">Study Sheets Answer Keys</a></dd>
<dd><a href="#p1c">Graded Assignments</a></dd>
<dd><a href="#p1d">Graded Assignment Answer Keys</a></dd>
</dl>
<div class="tabs-content">
<div class="content active" id="p1a">
<ul>
<li><a href="x"> example </a>
</ul>
</div>
To specify a particular section of the page, could using ID be a solution? Like so:
<a href="/otherpage#XID" data-reveal-id="myModal" data-reveal-ajax="true">
Is there a way to achieve this using this method? If yes, how?