Isn't this an issue with the DOM of a particular browser - specifically, if it simply allows non-'input' type elements to have a value attribute, or does not?
An <input> or <select> will have (by its nature) a 'value'. A <div> will not. Not until you assign one to it. Or so it seems. On May 26, 3:47 pm, Alex Farcas <[email protected]> wrote: > Further details: > This behavior was noticed only in FF browsers. > - in FF 2.0.0.12 it is exactly as described in the previous message > - in FF 3.0.10 the difference is that val() does not return the value > attribute if that attribute is set by html markup, but does retrieve > it if it's set with val(). If set with val(), both attr() and val() > return the same value. > > I used JQuery 1.3.1 and 1.3.2 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---
