I have this code:
<p><label for="mobtel">Enter mobile no.:</label><br />
<input id="mobtel" type="text" name="mobtel"/></p>
I hide it using jquery with this:
$("label[for=mobtel],#mobtel").hide();
And now I want now is to display a new label and new input that will look like this:
<p><label for="mobtel">Enter verification no.:</label><br />
<input id="verification_no" type="text" name="verification_no"/></p>
How can I do this in jquery style?
I would just include both as normal in the HTML, and then hide/show as needed:
and
CSS:
Then call to use: