javascript - textbox readonly validation php -
I have a Datepicker and I have to be validated and this is just for reading, but my code does not work perfectly Does. help please.
This error is my JS
& lt; Script type = "text / javascript" & gt; $ (Function () {$ ("#jQueryValidateTest"). Validate (); $ ("[type = readonly]"). Datacar ({onClose: function () {$ (this) .valid ();}}) ; });a???? & Lt; / Script & gt; And here is my form
& lt; Form id = "jQueryValidateForm" action = "reservation / demo.fpp" method = "post" "& gt; & lt; span style =" margin-right: 11px; "& gt; Start date: & lt; input type = "Readable" name = "Start" id = "sd" value = "" maxlength = "10" required = "" / & gt; & lt; / span & gt; & lt; br & gt; & lt; span style = "Margin-right: 11px;" & gt; end date: & lt; input type = "read" name = "end" id = "ed" value = "" max length = "10" required = "" /> Gt; & lt; / span & gt; & lt; br> Input Type = "Hidden" name = "results" id = "results" /> gt;
& lt; duration & Gt; & lt; input type = "submit Click "onclick =" setDifference (this.form); Valid form (); "Value =" check availability ");" / & Gt; & Lt; / Span & gt; & Lt; / Form & gt; The problem is resolved!
These lines are incorrect syntax
if (x == weak || X == "") 'Readable' = & gt; 'Readable')); and
if (y == ft = y == "") 'readable' = & gt; 'read only')); Do you have = or & amp; Amp; was meant to be put? Apart from this, they really do not understand. You might have read 'readonly' = & gt; 'read only')); Bits should be removed.
Comments
Post a Comment