my solution:
$('#myinput').clone().attr('type','tel').insertAfter('#myinput').prev().remove();
Related Contents:
- Unable to set data attribute using jQuery Data() API
- How to change an element’s title attribute using jQuery
- Select elements by attribute
- Can I open a dropdownlist using jQuery
- Use jQuery to change an HTML tag?
- Bind a function to Twitter Bootstrap Modal Close
- jQuery table sort
- jQuery Datepicker onchange event issue
- Show div on scrollDown after 800px
- Catch error if iframe src fails to load . Error :-“Refused to display ‘http://www.google.co.in/’ in a frame..”
- Find out whether radio button is checked with JQuery?
- Is it possible to set async:false to $.getJSON call
- Difference between jQuery parent(), parents() and closest() functions
- jQuery find closest previous sibling with class
- jQuery: count number of rows in a table
- Mvc Jquery Ajax Post returns null
- Jquery – Remove only text content from a div
- Fire event each time a DropDownList item is selected with jQuery
- How do I POST with jQuery/Ajax in Django?
- Error :Request header field Content-Type is not allowed by Access-Control-Allow-Headers
- Importing jQuery into Joomla
- jQuery ui datepicker with Angularjs
- Get the height and width of the browser viewport without scrollbars using jquery?
- jQuery Ajax wait until all images are loaded
- How does jQuery .data() work?
- How to disable mouse scroll wheel scaling with Google Maps API
- How can I detect if a selector returns null?
- How can I make a jQuery UI ‘draggable()’ div draggable for touchscreen?
- jQuery set checkbox checked
- How can I change the css class rules using jQuery?
- jquery trigger function when element is in viewport
- MVC DateTime validation – UK Date format
- jQuery onclick toggle class name
- What’s the difference between jquery.js and jquery.min.js?
- jquery ui Dialog: cannot call methods on dialog prior to initialization
- Accessing functions bound to event handlers with jQuery
- Populating One Select Box Based on the Selection in Another Select Box – JQuery?
- How can I get the corresponding table header (th) from a table cell (td)?
- How to insert close button in popover for Bootstrap
- How do I iterate through children elements of a div using jQuery?
- Getting value from JQUERY datepicker
- disable past dates on datepicker
- Is the order objects are return by a jQuery selector specified?
- Listen to changes within a DIV and act accordingly
- Combining LazyLoad and Jquery Masonry
- Events not registering after replaceWith
- Finding the id of a parent div using Jquery
- DataTables – Not working when added colspan for the last column
- jqgrid load large data set without pagination
- Remember ajax added data when hitting back button