Q:

bind in javascript

bind() returns a bound function that, when executed later, will have the correct context ("this") for calling the original function.
6
func.bind(this)
3
<html>
<input type="button" id="btnSubmit" name="btnName" class="btnclass" value="Click Me" />
</html>

$('input[name="btnName"]').click(function(){
    //do stuff
});
0

New to Communities?

Join the community