1) At least you included some information in your follow-up post instead of
just "Nevermind. It's working" :)

2) Don't forget you can use .val(newValue) instead of .attr("value",
newValue)

- Richard

On Fri, Dec 12, 2008 at 12:43 AM, brian <bally.z...@gmail.com> wrote:

>
> On Fri, Dec 12, 2008 at 12:36 AM, brian <bally.z...@gmail.com> wrote:
> > Lots of false-positives googling this.
> >
> > <input type="button" id="a_button" value="foo" />
> >
> > $('#a_button').attr('value', 'bar');
> >
> > Doesn't work? Or, am i losing my mind?
> >
>
> 2 rules of programers' email lists (in no particular order):
>
> 1) the longer you futz about trying to make something work, the sooner
> you'll realise your dumb error just after posting a cry for help.
>
> 2) Always, Always, ALWAYS try your own simplified code before posting.
>
> Sorry, I was using variables inside of a terniary block and I just
> realised I had them backward, so the text was being changed to ... the
> same thing.
>
> No wonder google wasn't giving me anything.
>

Reply via email to