Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7402161
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:40:23+00:00 2026-05-29T04:40:23+00:00

I had this working in prototype.js but it conflicted with a few script files.

  • 0

I had this working in prototype.js but it conflicted with a few script files. This is how I set it up in the new script using http://digitalbush.com/projects/masked-input-plugin/

<script src="jquery.js" type="text/javascript"></script>
<script src="jquery.maskedinput.js" type="text/javascript"></script>

<script type="text/javascript" language="javascript">

  jQuery(function($){
  $("#phone").mask("(999)999-9999");
  $.mask.definitions['~']='[+-]';
  $("#eyescript").mask("~9.99 ~9.99 999");
  });

</script>

This is obviously missing something based on my script in prototype.js, here is an example I had to remove.

<script type="text/javascript" src="/media/system/js/prototype.js"></script>
<script type="text/javascript" src="/media/system/js/prototype.maskedinput.js"></script>

<script type="text/javascript">
Event.observe(window, 'load', function() {

    new MaskedInput('#phone', '(999)999-9999');

    new MaskedInput('#eyescript', '~9.99 ~9.99 999', {
        completed: function(){
            alert("You typed the following: " + this.getValue());
        }
    });

    MaskedInput.definitions['~']='[+-]';

    new MaskedInput('#eyescript2', '~9.99 ~9.99 999', {
        completed: function(){
            alert("You typed the following: " + this.getValue());
        }
    });
});
</script>

Like I said, this script did work but gave me conflicts with too many thing (mootools/jquery) so I want to make the jquery version work for this action instead and see if it resolves the issue.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T04:40:26+00:00Added an answer on May 29, 2026 at 4:40 am

    I was able to get it working with this…

    <script type="text/javascript">// <![CDATA[
      jQuery(function($) {
      $.mask.definitions['~']='[+-]';
      $('#phone').mask('(999)999-9999');
      $("#product").mask("a*-999-a999",{placeholder:" ",completed:function(){alert("You typed the following: "+this.val());}});
      $("#eyescript").mask("~9.99 ~9.99 999");
       });
    // ]]&gt;</script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I had this working in UI 1.8.6 using this hack , but I cant
I had this working fine while using toggle, but I need to make these
Strangely I had this working before but I reinstalled my system, upgraded to w7
I had this working an hour ago but must have changed something. How should
So I had this working perfectly fine, but now for some reason I can't
I had this working(ish) before, but apparently something has changed on my system and
I've had this working for months but I had a power cycle today and
I've been working on a set of RESTful HTTP services implemented using Restlet in
Had this working well in Emacs 23.1.x but it appears to have broke in
I had this working previously, but I didn't understand how, so I'm attempting to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.