0

I am using a jquery keyboard from Mottie. I want this keyboard to be shown only with name attribute equal to "email" and the input type to be a text field.

The code below doesnt work for me.

$("input[name!='email' type='text']").keyboard({ //my code here });

2 Answers 2

2

You have incorrect selector for targeting input element. Use:

$("input[name=email][type=text]")

or

$("input:text[name=email]")
Sign up to request clarification or add additional context in comments.

Comments

1

Your attribute selector format is not correct , use the following

$("input[name=email][type=text]").keyboard({ //my code here });

1 Comment

Sorry Milind was first to answer.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.