0

How do i go about changing the values inside the style for width and height using jquery?

<div id="id11t" style="position: relative; width: 1022px; height: 446px;">

Thanks

1

3 Answers 3

2
$('#id11t').css({
  width: "300px",
  height: "200px"
})
Sign up to request clarification or add additional context in comments.

Comments

0
$("#id11t").css('width', '1022px');
$("#id11t").css('height', '1022px');

Will resize your div to 1022x1022

Comments

0
$('#id11t').width(X);
$('#id11t').height(Y);

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.