#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2002
    Posts
    99
    Rep Power
    0

    JQuery css style is lost


    I have a function:

    function quiz(action,id,last,value) {
    $.get("/mobile/quiz.php?action=" + action+ "&id=" + id + "&last=" + last+ "&value=" + value,
    function(data){
    $("#quiz").html(data);
    });
    }

    In my php document I call the function like this:
    <a href="javascript:quiz('test','<?php echo $id; ?>','<? echo $question; ?>','5')">totally agree</a>

    Everything works fine, but only the css (I'm using jQuery mobile) gets lost after clicking the link "totally agree".

    How can I fix this?
  2. #2
  3. A Not To Shabby Code Smurf
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Aug 2008
    Posts
    1,134
    Rep Power
    120
    What kind of error are you receiving, in your browser's developer console?

IMN logo majestic logo threadwatch logo seochat tools logo