Hi Alfredo,
You can't, because the attribute *value* isn't a valid one for the div element in XHTML documents.
And going further:

1-) The attribute *id* must be unique within a document.
2-) Avoid use inline styles.

Regards
MaurĂ­cio

I've a html page like this:

<div class="chess-board">
  <div id="casa" style="position: absolute; top: 172px; left: 43px;"
value="b4"/>
  <div id="casa" style="position: absolute; top: 172px; left: 86px;"
value="c4"/>
  <div id="casa" style="position: absolute; top: 172px; left: 129px;"
value="d4"/>
  <div id="casa" style="position: absolute; top: 172px; left: 172px;"
value="e4"/>
</div>

Can I select a div by the value??

$(".chess-board value='b4'")




Thanks,

Alfredo

Reply via email to