Click here to Skip to main content
15,893,644 members
Posted
Comments
Thanks7872 18-Jun-14 6:53am    
We need explanation of the issue and code you have implemented. We are not going to refer the link what you did.
Paulo Augusto Kunzel 18-Jun-14 8:02am    
Please post your code
maheshtsutar 19-Jun-14 2:00am    
<%--<script type="text/javascript">
if (navigator.userAgent.indexOf("MSIE") > 0) {
$(function () {
// document.getElementById("m").value = "Address Line 1";

var input = document.createElement("input");
if (('placeholder' in input) == false) {
$('[placeholder]').focus(function () {
var i = $(this);
if (i.val() == i.attr('placeholder')) {
i.val('').removeClass('placeholder');
if (i.hasClass('password')) {
i.removeClass('password');
this.type = 'password';
}
}
}).blur(function () {
var i = $(this);
if (i.val() == '' || i.val() == i.attr('placeholder')) {
if (this.type == 'password') {
i.addClass('password');
this.type = 'text';
}
i.addClass('placeholder').val(i.attr('placeholder'));
}
}).blur().parents('form').submit(function () {
$(this).find('[placeholder]').each(function () {
var i = $(this);
if (i.val() == i.attr('placeholder'))
i.val('');
})
});
}
});
}
</script>--%>
maheshtsutar 19-Jun-14 2:07am    
I resolved this issue using compatibility mode set
It happen due to default compatibility mode =9
--but i would like to solve this using JavaScript function which i have use/ using posted script
thx

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900