my solution:
$('#myinput').clone().attr('type','tel').insertAfter('#myinput').prev().remove();
More Related Contents:
- Unable to set data attribute using jQuery Data() API
- Select elements by attribute
- How to change an element’s title attribute using jQuery
- jQuery attribute name contains
- Removing html5 required attribute with jQuery
- Fancybox2 – different content for tooltip and image title, both from title attribute?
- A cleaner way to select by multiple possible attribute values?
- jQuery: this.attr() not a function?
- How to remove disabled attribute with jQuery (IE) [duplicate]
- How to show loading spinner in jQuery?
- TypeError: ‘undefined’ is not a function (evaluating ‘$(document)’)
- Jquery live() vs delegate() [duplicate]
- How can I convince IE to simply display application/json rather than offer to download it?
- jQuery Call to WebService returns “No Transport” error
- Custom date format with jQuery validation plugin
- jQuery event handlers always execute in order they were bound – any way around this? [duplicate]
- How to trigger click event on href element
- detect elements overflow using jquery
- Get data from file input in JQuery
- jQuery & Prototype Conflict
- How to send request parameter array to servlet using jQuery $.ajax?
- How to take id as selector when used hash?
- How to set cache: false in jQuery.get call
- linking jquery in html
- jQuery UI Slider Labels Under Slider
- jQuery DataTables: control table width
- How to reset radiobuttons in jQuery so that none is checked
- Validate email with a regex in jQuery [duplicate]
- Pop Images like Google Images
- Jquery to open Bootstrap v3 modal of remote url