Hello
This is my first time creating a plugin.I am trying to make a plugin that will validate whether input field is emty or not.
My problem is with keyup() function if I call it as I did in 1.php it works fine, but I want to put keyup() in plugin as I did in vall.js, it is commented out $(this).keyup(function() it is not working. Should I place keyup() somewhere else or make a separate keyup() function.
Later I want to add keyup(),focus()... to options so I can just write keyup:true or something like that.
Thank you
this is val.js
Hello This is my first time creating a plugin.I am trying to make a plugin that will validate whether input field is emty or not. My problem is with keyup() function if I call it as I did in 1.php it works fine, but I want to put keyup() in plugin as I did in vall.js, it is commented out $(this).keyup(function() it is not working. Should I place keyup() somewhere else or make a separate keyup() function. Later I want to add keyup(),focus()... to options so I can just write keyup:true or something like that. Thank you this is val.js
this is where I am calling the main jquery file 1.php
});
< /script>