Sorry if I was unclear before.
Let me explain:
Multiple classes on an element should look like this:
HTML Code:
<tr class="firstclass secondclass thirdclass fourthclass">
//some code here
</tr>
They should be separated with a space and you can have as many as you want (within reason).

Originally Posted by
jemz
when i navigate other page i just use .load() function and in my url it will never change it always firstpage.php but in the body is now the content of secondpage.php, now does all my javascript in secondpage will work?
My initial answer would be no.
For example:
File 1:
HTML Code:
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>.load() example</title>
<script src="http://code.jquery.com/jquery-latest.js"></script>
</head>
<body>
<dv id="result"></div>
<script>
$('#result').load('test.html #container');
</script>
</body>
</html>
File 2:
HTML Code:
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Unbenanntes Dokument</title>
</head>
<body>
<div id="container">
<h1>Some content</h1>
<script>alert("bo");</script>
<h2>Some more content</h2>
</div>
</body>
</html>
Here, file 1 loads file 2 via .load()
On load however, you will not see an alert box pop up, as the script tags will not be inserted into file 1.
Maybe there is a way to accomplish what you are trying to do.
I would just need to see a (minimal) example.
Bookmarks