Added require JS support.
Users can now us the following commonjs/requirejs syntax to get the library in their script files.
require("jquery-mentions");
Added code to copy data- attributes from the input to the hidden input created by this plugin , this is to ensure that jquery validate plugin works well with the plugin.
Made the following changes
Note : Next step would be to register this as a npm package https://docs.npmjs.com/getting-started/publishing-npm-packages
Added require JS support. Users can now us the following commonjs/requirejs syntax to get the library in their script files. require("jquery-mentions");
Added code to copy data- attributes from the input to the hidden input created by this plugin , this is to ensure that jquery validate plugin works well with the plugin.