Discussion on:

4
Comments

Join the conversation!

Follow via:
RSS
Email Alert
0 Votes
+ -
Hi,
I'm not really good in english, but you don't "Get objects by attribute", you changed some attribute of an element, nothing else...

Getting an element by attribute looks like that :
$('img[class]');
or with a value :
$('img[class="image"]');
or more difficult :
$('img[class$="align"]');

Or with filter function :
$('img').filter('[class="image"]');

Thank you.
Geoffrey
0 Votes
+ -
Sorry, but Geoffrey is correct here.
In your example you get the 'img' and change its attributes with .attr().
0 Votes
+ -
how do you get an image from a dynamic webcam stream such as :
Keyboard Shortcuts:
Prev
Next
Toggle
Join the conversation
Formatting +
BB Codes - Note: HTML is not supported in forums
  • [b] Bold [/b]
  • [i] Italic [/i]
  • [u] Underline [/u]
  • [s] Strikethrough [/s]
  • [q] "Quote" [/q]
  • [ol][*] 1. Ordered List [/ol]
  • [ul][*] · Unordered List [/ul]
  • [pre] Preformat [/pre]
  • [quote] "Blockquote" [/quote]

Join the TechRepublic Community and join the conversation! Signing-up is free and quick, Do it now, we want to hear your opinion.