script type text javascript src media js jquery js script script type

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
<script type="text/javascript" src="/media/js/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$(".switch_featured").click(function(e){
e.preventDefault();
$.post($(this).attr('href'), {}, function(text) {
$(this).text(text);
});
});
});
</script>