I have a image under div id myimage. Now I want to resize it by using change. I want from select box if selected 700X7000 then image's size will be height 700px and width 700px. With out reloading the page. Can anyone help me how can I do this?
相关问题
- Views base64 encoded blob in HTML with PHP
- How to get the background from multiple images by
- How to fix IE ClearType + jQuery opacity problem i
- jQuery add and remove delay
- Include empty value fields in jQuery .serialize()
The condition is where you can say item selected.
Below are ways to check to see if the box is selected:
Example working:
Fiddle : https://jsfiddle.net/cmxevnp0/3/
Or
Function send object
Well, to change it, you can just set the image's
width()
andheight()
:So for you to do the drop down box, you can just set the values to be something like
100x100
,200x200
, etc. andsplit
the selected value to extract the dimensions: