HTML:
<input type="text" class="text text-1" />
jQuery
$('input.text-1').wrap('<span class="textfield-1"></span>');
CSS:
.textfield-1 {
border: 1px solid #d00;
display: none;
}
wrap() doesn't seem to work. I don't see 's wrapped around input in firebug. If they were wrapped, inputs would be hidden with display:none, but they aren't.
What am I doing wrong here?
Thanks