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

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -