I have an input box with an I.D. of "q" on my website...
By entering javascript into the URL bar I can change the place holder text (client side) to say "test"
javascript:void(document.getElementById('q').value='test');
Now if I wanted to make it say test (but in bold with html) how would I do that??
I tried:
javascript:void(document.getElementById('q').value='<b>text');
But that won't work.. it's a string! I don't know much javascript...
Thanks all!
javascript:void(document.getElement ById('q').value='test');
By entering javascript into the URL bar I can change the place holder text (client side) to say "test"
javascript:void(document.getElementById('q').value='test');
Now if I wanted to make it say test (but in bold with html) how would I do that??
I tried:
javascript:void(document.getElementById('q').value='<b>text');
But that won't work.. it's a string! I don't know much javascript...
Thanks all!
javascript:void(document.getElement ById('q').value='test');