I’m trying to use prepend() to put a text before an input text.
This is my try:
but it doesn’t work..
any idea?
Javi
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
You don’t want to use prepend, which adds the given text inside the input is makes your text appear in the input. Something like:
You need to use before which creates
See this jsFiddle
You can also do something like this, this adds the text as first item for the parent of the input.