My guess is that you are using a newer version of jquery, I tested with 1.9.1 and jQuery.live does not work (removed jquery 1.9). A simple change to jQuery.on and it sprang immediately to life.
<form>
<input type="text" />
<input type="password" />
<button type="button" class="btn-login">Log in</button>
</form>
$(document).ready(function () {
$('.btn-login').on("click", function () {
alert("Button clicked!");
});
});
on jsfiddle
As a note to comments, this is what the W3C has to say
Buttons created with the BUTTON element function just like buttons
created with the INPUT element, but they offer richer rendering
possibilities: the BUTTON element may have content. For example, a
BUTTON element that contains an image functions like and may resemble
an INPUT element whose type is set to “image”, but the BUTTON element
type allows content.
The Button Element - W3C
This article demonstrates some of the differences between button and input
And what of W3cschools advice?
Tips and Notes Note: If you use the element in an HTML form,
different browsers may submit different values. Use to create
buttons in an HTML form.
W3cschools: HTML Tag
w3cschools are not an authorative body. As far as I can tell, the only browsers that had real issues were IE6 & IE7, so I guess their advice is a little out of date. It is possible that there are others but I could not find anything concrete. the best I could find was on MDN <\button>
IE7 has a bug where when submitting a form with Click me, the POST data sent will
result in myButton=Click me instead of myButton=foo. IE6 has an even
worse bug where submitting a form through a button will submit ALL
buttons of the form, with the same bug as IE7 This bug has been fixed
in IE8
<form>tag would break it but try using.on('click'instead of.livehttp://www.w3schools.com/tags/tag_button.aspTips and Notes Note: If you use the <button> element in an HTML form, different browsers may submit different values. Use <input> to create buttons in an HTML form.