Change css of iframe using jquery not working (same domain) -


I saw tons of examples and examined how you can manipulate iframe content from parents It is trying for itself I can not get it to work - neither my test environment (which is on the same domain and url) nor jsfiddle:

What is I doing wrong here?

All you need to do is just change the code a little bit. Use the prepared () method instead of the load () method

  $ ('iframe # frame'). Ready (work () ($ ('iframe # frame'). Content (). ("Head") enclosed ($ ("style = type = 'text / css'' body {display}: none ;} & Lt; / style & gt; "));});   

I've closed your JSField, you can see the demo

Comments

Popular posts from this blog

Out of index C/C++ -

regex - PatternSyntaxException: while using String.ReplaceAll function in java? -

java - Projects which are accessed via multiple (different) IDEs: Ant or Maven? -