Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

my code not working on chrome mobile but all browser working

<script src=""></script>
<input id="ItemName" type="text" />
$('#ItemName').keypress(function (e) {
var txt = String.fromCharCode(e.which);
if (txt.match(/[>&.&<>/]/)) {
return false;

2 answers

Use "keydown" instead of "keypress"

0 votes
DPK J Community Leader Mar 03, 2020

@mukesh singh  Welcome to the community!

Although this is not right space. But still let me help you.

There certainly some issue with 'keypress' event on Android browser (i.e. chrome mobile). Try replacing it with 'keydown' event, this usually works fine.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Team-managed projects

An update on team-managed projects customer feedback – November 2021

Hi! My name is Eoin and I'm a product manager working on Team-managed projects in Jira Software Cloud. We're continuously improving and updating Jira Software and feedback from our customers is ...

1,378 views 0 8
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you