How to make a rectangle as per dimension given by any user?

Mr.Share

New Member
I was trying to make a rectangular shape, as per the value entered inside the input area.To be more specific, I have two fields:Width:Height:So, I wanted to pass the value of width and height to a function in JavaScript and make the rectangle as per values entered.I tried looking up the internet, but even after spending hours on it, I could not find a solution. :(Any help will be appreciated.P.S. a small fiddle or example will be helpful.
 
Back
Top