JQuery/CSS is lost

label Programming
account_circle Unassigned
schedule 3 Days
account_balance_wallet $5

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?

Nov 30th, -0001
Hey. Why not try to include the css in this page too? If you use a link to include the css file in the html, it will lost after you do this.
But if you try to copy and paste all the css into that page you load from. (copy from your .css to .html), it will work.
Jun 13th, 2013

I tried it, but that didn't work. I included these files. Didn't work.

<link href="http://code.jquery.com/mobile/1.0a3/jquery.mobile-1.0a3.min.css" rel="stylesheet" type="text/css" />
<script src="http://code.jquery.com/jquery-1.5.min.js" type="text/javascript"></script>
<script src="http://code.jquery.com/mobile/1.0a3/jquery.mobile-1.0a3.min.js" type="text/javascript"></script>


Jun 13th, 2013

You mean you included all the css in your new file and it's still working(Not the file you are trying to .get)? Have you tried to copy and paste all stuff from the jquery.mobile-1.0a3.min.css and paste them to the file you are trying to get?

Jun 13th, 2013

Did you know? You can earn $20 for every friend you invite to Studypool!
Click here to
Refer a Friend
...
Nov 30th, -0001
...
Nov 30th, -0001
Jun 26th, 2017
check_circle
Mark as Final Answer
check_circle
Unmark as Final Answer
check_circle
Final Answer

Secure Information

Content will be erased after question is completed.

check_circle
Final Answer