So who has no problems with ie7?
I can't seem to get ie7 to recognize some data.
I created a wordpress theme for my client, and this allows them to add additional information in wordpress meta fieldsthrough the administrator so that they can display additional information.
I wrote a small jQuery script that looks at images altand titleto collect this information and write it in a div.
Below is my script.
<script type="text/javascript">
jQuery(document).ready(function(){
var title = jQuery('.attachment-post-thumbnail').attr('title');
var alt = jQuery('.attachment-post-thumbnail').attr('alt');
jQuery('#vehicle-alt').html('<h2 class="car-detail">'+title+'</h2><p>'+alt+'</p>');
});
</script>
When I look at the source code in ie7, the information is not transmitted.
div is as simple as <div id="vehicle-alt"></div>
source
share