You need to sign in to do that
Don't have an account?
jquery not working with VF page
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?
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?
what is the error you are getting ?
errors.. I can the value in textbox, but after loading the value gets cleared
can you please try following code.
I tried it and it doesn't work. It shows up the value and after loading it clears..
ok, can you please post your vf page and component so that I can have a look any other issue ?