Hey, thank you all !
i have changed the code as @Karl suggested and it works now.
And thanks everyone by taking care.
Use id=whatever rather than name=whatever. In CSS #whatever
refers to an element with id=whatever.
The name attribute is for form elements, not for general elements.
Karl Rudd
On Fri, Mar 13, 2009 at 10:02 AM, radioAM japasc...@gmail.com wrote:
hello, i'm new at using jQuery and i'm trying
You can still use name, just change your selector to
$('[name=div1]')
Also, when writing out html in string, put them between single quotes
and the html in double quotes so you can do this:
var htmlText = 'a class=widgetBasSelector basicHola!!/adiv
class=pp name=div1/div';
instead of
var
On Mar 13, 11:10 am, Karl Rudd karl.r...@gmail.com wrote:
Use id=whatever rather than name=whatever. In CSS #whatever
refers to an element with id=whatever.
The name attribute is for form elements, not for general elements.
The name attribute is valid for many more elements than just form
Quite right, I should have said:
In general the name attribute is for form controls, rather than
general HTML elements.
Karl Rudd
On Fri, Mar 13, 2009 at 1:25 PM, RobG rg...@iinet.net.au wrote:
On Mar 13, 11:10 am, Karl Rudd karl.r...@gmail.com wrote:
Use id=whatever rather than
My 2 cents:
You can still use name,..., yes, and you can use an attribute called
foobar, but that doesn't mean you should. Rob indicatesThe name
attribute is valid for many more elements and then provides the full
list, but I don't see DIV on that list anywhere.
According to the spec for HTML4
6 matches
Mail list logo