[jQuery] Can't set type="search" attribute to input fields on Safari 3.0
Apparently, jQuery can't set the "type" attribute of html input fields
to look like Cocoa search fields in Safari.
jQuery version: 1.2.3
Safari version: 3.1 (525.13)
Proof follows:
<html>
<head>
<script src="jquery-1.2.3.min.js"></script>
<script>
$(function() {
// this works:
//document.getElementById('s_f').setAttribute('type', 'search');
// these don't work:
$('#s_f').attr('type', 'search');
$('#s_f').attr({type: 'search'});
});
</script>
</head>
<body>
<input type="text" id="s_f" />
</body>
</html>
Best regards,
--
Claudio Procida
http://www.emeraldion.it