Сообщение от nule
|
Как сделать
|
Да так и сделать...
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<!--
<link rel="stylesheet" type="text/css" href="tmp.css" />
-->
<style type="text/css">
</style>
<script type="text/javascript">
$(document).ready(function (){
$('#on_off').click(function (){
var o=$(this);
var txt=(o.text()=='Включено')? 'Выключено': 'Включено';
o.text(txt);
});
});
</script>
</head>
<body>
<a id="on_off" href="#">Включено</a>
</body>
</html>