I am programming for PHONEGAP and JQUERY MOBILE does not work on the pages I am loading

Asked

Viewed 69 times

1

I am programming for PHONEGAP and when I load a page per load inside my code I cannot use any type of selector or Jquery for that code.

Example

    <script>
    (document).ready{function(){
        ("#botao1").click(
        //acao
        )
    }}

    function carregar(){
      ("#minhadiv").load("pagina.html");
    }
    </script>

The code of the page "pagina.html" would look like this:

    <div id="div1">
        <span id="botao1"></span>
    </div>

When page loads, by clicking on "button 1" jquery does not work

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.