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