Programming
JQuery/CSS is lost

Question Description

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?

Final Answer

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.

henry (1070)
UC Berkeley

Anonymous
The tutor managed to follow the requirements for my assignment and helped me understand the concepts on it.

Anonymous
The tutor was knowledgeable, will be using the service again.

Anonymous
Awesome quality of the tutor. They were helpful and accommodating given my needs.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors