1

<h3>外部 Web サイトから定義されたクラスを使用して、div から要素をロードしたいと考えています。特にタイトルを獲得したい。外部 Web サイトは私のものではなく、その html で何でも変更できます。このウェブサイトのhtmlの一部はこのようなものです

<div id="container">

<!-- some other divs -->
<div class="content sub">

    <div class="box blog">
        <h3><a href="http://www.somelink.com/page1/" title="">Title 1</a></h3> 
        <p>Some text here... bla bla bla...</p>
        <a href="http://www.somelink.com/page1/" title=""  class="read_more">read more</a>
    </div>  

        <div class="box blog">
        <h3><a href="http://www.somelink.com/page2/" title="">Title 2</a></h3> 
        <p>Some text here... bla bla bla...</p>
        <a href="http://www.somelink.com/page2/" title=""  class="read_more">read more</a>
    </div>

        <div class="box blog">
        <h3><a href="http://www.somelink.com/page3/" title="">Title 3</a></h3> 
        <p>Some text here... bla bla bla...</p>
        <a href="http://www.somelink.com/page3/" title=""  class="read_more">read more</a>
    </div>
</div>
</div>

jQuery Mobile ページのコンテンツ div にタイトルをロードしたい。

これを行う方法はありますか?

4

0 に答える 0