mathiasbynens / jquery-placeholder

A jQuery plugin that enables HTML5 placeholder behavior for browsers that aren’t trying hard enough yet
https://mths.be/placeholder
MIT License
3.98k stars 1.34k forks source link

Problem In IE while control(input, textarea) in modal popup #171

Closed umesh8965 closed 9 years ago

umesh8965 commented 11 years ago

hi,

placeholder script is not display placeholder text in modal popup or when form style display:none during page load.

sfd

RyanGladstone commented 10 years ago

Be sure to call the Placeholder initialization once the modal is displayed

or3lie commented 10 years ago

Hello ! I have the same problem with my login form which is in bootstrap popover. screenshot No problem in ie8, no problem in ie10 and ie11, the problem appears only on ie9. I call placeholder after popover has been shown so I don't understand why it doesn't work !

$('.login-btn').popover();
$('.login-btn').on('shown.bs.popover', function () {
        $('.placeholder').placeholder();
});

Thanks

amerikan commented 9 years ago

@umesh8965 Are the contents being loaded via AJAX?

@or3lie ie10 and ie11 don't use this plugin. They already implemented natively.