With jQuery 1.4 you can change the type of an input while it’s detached.
marker = $('<span />').insertBefore('#myInput');
$('#myInput').detach().attr('type', 'text').insertAfter(marker);
marker.remove();
More Related Contents:
- When we using alert vs popup div tag? [closed]
- How do I display a lightbox on only homepage of my blogger blog?
- How to hide css and js version details from weppalyzer in PHP
- CSS Propertie change OnClick [closed]
- How to make page loaders/animations/transitions
- My JS is not working (chat application)
- Download the text over image using jquery
- How to apply !important using .css()?
- Replacing css file on the fly (and apply the new style to the page)
- Dynamically loading css stylesheet doesn’t work on IE
- How to silently hide “Image not found” icon when src source image is not found
- How to close an open collapsed navbar when clicking outside of the navbar element in Bootstrap 3?
- Use images like checkboxes
- Setting CSS value limits of the window scrolling animation
- How can I generate the opposite color according to current color?
- Responsive horizontal page sliding
- scrollTop animation without jquery [duplicate]
- How to swipe top down JQuery mobile
- jQuery: Slide left and slide right
- How to show hidden divs on mouseover?
- Placeholder for contenteditable div
- jQuery Popup Bubble/Tooltip [closed]
- How do I make a div full screen?
- How to keep elements non-refreshed
- How do you swap DIVs on mouseover (jQuery)?
- Center an Image vertically and horizontally using CSS
- Change background on button click, using CSS only? [duplicate]
- Jquery/Javascript Opacity animation with scroll
- Can I save input from form to .txt in HTML, using JAVASCRIPT/jQuery, and then use it?
- Difference between jQuery’s .hide() and setting CSS to display: none