I have the following html:
<div type="Text with spaces" eventid="57" class="movie">...</div>
How can I read the type attribute with jQuery?
I tried this:
var type = $(".movie").attr("type");
but type contains only Text.
UPDATE:
This is how I was using this variable:
$("#publicationBlock").load("/Publication/EventSchedule?eventId=" + eventId + "&type=" + type
In the action, I get only Text.