doniyor
doniyor

Reputation: 37904

iframe.height(100); is adding in chrome, and setting in firefox

var iframe = $("#id_iframe");
iframe.height(200);

in chrome, this is adding to the current height instead of replacing the current height.

in firefox, it is replacing which is right.

What do I need?

Upvotes: 0

Views: 35

Answers (1)

jeremyb
jeremyb

Reputation: 492

Try using:

iframe.css('height', '200px');

Upvotes: 1

Related Questions