Javascript: Show alert when @hotmail account is being used

I have customers who seem to get emails sent straight into their junk mail when using a Hotmail account. I would like to add some Javascript which could detect when someone has typed in @hotmail into the input.

Is this at all possible? If so, how would I go about implementing something like this? I would prefer to use JQuery and as always, any help would be greatly appreciated.


    var value = $(this).val();
    if (value.match(/@hotmail/g) != null)
        alert("Your alert");

That should do it

Need Your Help

Declarative Authorization - how to set acces for all actions in controller?

ruby ruby-on-rails-3 authorization declarative-authorization

I use Declarative Authorization gem and in my authorization_rules.rb I have following rule:

android download and update application then unistall old version and install new version from service

android install

I want to check version my application then if new version is available ,download this new file and then uninstall old version and install new version.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.