Hi,
I'm trying to use HTML5 input form like this :
- $('input').prop('type', 'email');
But, Internet Explorer seem doesn't support this code.
My solution :
- $.fn.attr2 = function(p_name, p_value) {
- return this.each(function() {
- var $elt = $(this);
- $elt[0].setAttribute(p_name, p_value);
- });
- };
- $('input').attr2('type', 'email');
It's bug of jquery 1.6.1 ?
Thanks