X
Tap here to go to the mobile version of the site.

Support Forum

why cant i use keyboard shortcut in a particular textbox where some validation is present like ONLY NUMBERs are accepted

Posted

i have a full registration form in that one field accept only number. if user press any alphabets a-z it dosnt accept. The ISSUE is that if enter some no on that field and try to copy or select or cut it by using ctrl+C, ctrl+A, ctrl+V ..nothing happen..i cant change the value..

works fine with other browser..

i have a full registration form in that one field accept only number. if user press any alphabets a-z it dosnt accept. The ISSUE is that if enter some no on that field and try to copy or select or cut it by using ctrl+C, ctrl+A, ctrl+V ..nothing happen..i cant change the value.. works fine with other browser..

Additional System Details

Installed Plug-ins

  • Google Update
  • 5.1.20513.0

Application

  • Firefox 35.0.1
  • User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0
  • Support URL: https://support.mozilla.org/1/firefox/35.0.1/WINNT/en-US/

Extensions

Javascript

  • incrementalGCEnabled: True

Graphics

  • adapterDescription: AMD Radeon HD 7000 series
  • adapterDescription2:
  • adapterDeviceID: 0x6778
  • adapterDeviceID2:
  • adapterDrivers: aticfx64 aticfx64 aticfx64 aticfx32 aticfx32 aticfx32 atiumd64 atidxx64 atidxx64 atiumdag atidxx32 atidxx32 atiumdva atiumd6a atitmm64
  • adapterDrivers2:
  • adapterRAM: 1024
  • adapterRAM2:
  • adapterSubsysID: 21201028
  • adapterSubsysID2:
  • adapterVendorID: 0x1002
  • adapterVendorID2:
  • direct2DEnabled: True
  • directWriteEnabled: True
  • directWriteVersion: 6.3.9600.17415
  • driverDate: 7-4-2014
  • driverDate2:
  • driverVersion: 13.251.9001.1001
  • driverVersion2:
  • info: {u'AzureCanvasBackend': u'direct2d', u'AzureFallbackCanvasBackend': u'cairo', u'AzureContentBackend': u'direct2d', u'AzureSkiaAccelerated': 0}
  • isGPU2Active: False
  • numAcceleratedWindows: 1
  • numTotalWindows: 1
  • webglRenderer: Google Inc. -- ANGLE (AMD Radeon HD 7000 series Direct3D9Ex vs_3_0 ps_3_0)
  • windowLayerManagerRemote: True
  • windowLayerManagerType: Direct3D 11

Modified Preferences

Misc

  • User JS: No
  • Accessibility: No
the-edmeister
  • Top 25 Contributor
  • Moderator
5395 solutions 40084 answers

Is this something that you are developing? Is there a public page where this can be tested? If not, can you provide a test case example that we can try?

Is this something that you are developing? Is there a public page where this can be tested? If not, can you provide a test case example that we can try?

Question owner

the-edmeister said

Is this something that you are developing? Is there a public page where this can be tested? If not, can you provide a test case example that we can try?

Ya i am developing it i have a javascript that restrict the use from entering chars. the script is

$('#practiceNPI').bind('keypress', function (e) {
       
      
       var k = e.which;
       var ok = k >= 48 && k <= 57 || k == 01 || k == 0||
k ==8  ;                               
       
       if (!ok) {
           e.preventDefault();
    
      }
   });
''the-edmeister [[#answer-684280|said]]'' <blockquote> Is this something that you are developing? Is there a public page where this can be tested? If not, can you provide a test case example that we can try? </blockquote> Ya i am developing it i have a javascript that restrict the use from entering chars. the script is $('#practiceNPI').bind('keypress', function (e) { var k = e.which; var ok = k >= 48 && k <= 57 || k == 01 || k == 0|| k ==8 ; if (!ok) { e.preventDefault(); } });
the-edmeister
  • Top 25 Contributor
  • Moderator
5395 solutions 40084 answers

This forum is intended for user support, not for web development issues. Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The contributors over there are more knowledgeable about web page development issues with Firefox. http://forums.mozillazine.org/viewforum.php?f=25 You'll need to register and login to be able to post in that forum.

This forum is intended for user support, not for web development issues. Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The contributors over there are more knowledgeable about web page development issues with Firefox. http://forums.mozillazine.org/viewforum.php?f=25 You'll need to register and login to be able to post in that forum.