<script>
$.fn.btnClick = function() {
this.click(function() {
alert('test');
});
}
$('input#btn').btnClick();
</script>
<script>
$.fn.btnClick = function() {
return this.click(function() {
alert('test');
});
}
$('input#btn').btnClick();
</script>
No comments:
Post a Comment