Skip to main content
Hi,

I have a Visual force page which uses a component. I need to assign value for textbox in a component through JQuery for some IE 9 placeholder issue. I tried something like this

var placeholderText = 'Contribute a post..';

        $(window).load(function() {

            $('⌗newPostContent').val(placeholderText);

        });

When it loads it shows the text and after loading it disappears.Any ideas?
5 respostas