• 0

[Javascript] Getting and Setting the innerHTML of Object tags


Question

I am trying to get the <object> tag's innerHTML from firebug using JQuery, but when I run $('object').html(); from Firebug it always returns null.

I am unable to set attributes for the tag too: $('object').attr('abcd', 'efgh');

The same happens with embed tags as well.

Does anyone know why? What are some alternatives to get/set those attributes of object tags?

Any inputs would be useful. Thanks!

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Don't mean to be rude or anything, but you are referencing the jQuery library first right?

Is it possible to post the code of the webpage?

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.