How to change name of button using mouseoover function in jquery??
Hello Sir,
I want to change my button name using mouseover function.
I have two buttons.whenever pointer comes to any button its name change to yes and another button name to no.
Here is code i m trying
[
<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
</head>
<body>
Are you Mad?
<input type="button" class="c1" value="Yes" id="b1">
<input type="button" class="c1" value="No" id="b2">
<script >
$(".c1").mouseover(
function bun1() {
$(this).val=text.("Yes");
});
$(".c1").click(
function clock() {
alert("You Are Mad..")
}
)
</script>
</body>
</html>
]
Thanks.