You can try attr
instead of prop
. The "attribute selector" selects based on attributes, not properties. In order to do something like $("div[name=...
you must set the attribute, not the property.
It should be noted though that name
is not a valid attribute on a div
.