Only get 3 results on google but can anyone help?
This is the code:
Should work right?
When I put in an alert message it works.. but when I try to code in jquery it doesn't .. :s
This is the code:
Code:
<!DOCTYPE html>
<head>
<meta charset="UTF-8">
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<style>
div {
background-color: red;
}
a.test {
font-size: 22px;
}
</style>
</head>
<body>
<script type="text/javascript">
$(document).ready(function() {
$('a').addClass('a.test');
});
});
</script>
<div>
<p>some text</p>
</div>
<a href="asda">aa</a>
</body>
</html>
Should work right?
When I put in an alert message it works.. but when I try to code in jquery it doesn't .. :s
Last edited: