last day (38 days later) » 

10:12 PM
0
Q: How show basic validation messages in the text field

Sebastian SalazarI want to show the validation messages below the text fields that require it as well as the example that is in the image that I found Example I have the following text fields on my form, with their respective validation done in Javascript //Function to validate ticket form function vali...

 
add a span or other element u nder your textbox and add your messge to it, when validating
 
@JarlikStepsto Can you tell me the element that I should use under my text box
@daddygames I will take into account the comparison of values
 
do you mean somethin like this? (leave license blank and type in somewhere something to start v alidation): jsfiddle.net/87tu6o0g
 
@JarlikStepsto It's exactly what I want but check the update for what's happening
 
just updated the code: jsfiddle.net/87tu6o0g/1
have a look at my updated answer
does the updated version works for you?
 
10:12 PM
I'm going to try the update and tell you how it works
@JarlikStepsto check again the question I just made an update with your possible solution but it doesn't work
 
what should be valid and what not? please write the rules, for showing the text, then i can help you modifiying the code
tried to fix your code (see new update in my answer) but without knowing, what is valid for you and what not i used empty field as invalid and not empty as valid
 
@JarlikStepsto It has to be valid when writing on it and not valid when not written
@JarlikStepsto All two fields both "Matricula" and "Nombre Completo" must be mandatory, but if you see it in the update when I say something about them, the validation message comes out, it shouldn't be like that, you can check if suddenly I have the code misspelled in my update
@JarlikStepsto check the detailed update I've done
@JarlikStepsto in update 2, only until I write and delete what I wrote in the field is that I get the validation messag, try it
 

  last day (38 days later) »