rockinaway Posted August 12, 2012 Share Posted August 12, 2012 http://ditio.net/2010/01/02/jquery-image-resize-plugin/ I'm using the above plugin but after the width and height are added to the IMG tag, the tag is finished with just '>' instead of '/>'. How can I replace the '>' with a '/>'? Link to comment https://forums.phpfreaks.com/topic/266982-jquery-replace-part-of-tag/ Share on other sites More sharing options...
xyph Posted August 12, 2012 Share Posted August 12, 2012 Are you sure this isn't just how your browser is interpreting it? Link to comment https://forums.phpfreaks.com/topic/266982-jquery-replace-part-of-tag/#findComment-1368833 Share on other sites More sharing options...
rockinaway Posted August 12, 2012 Author Share Posted August 12, 2012 nope because prior to the plugin, when I output images with the already coded '/>' it works fine. However, the plugin seems to replace the existing '/>' when adding width and height and then completing with a '>' rather than '/>' Link to comment https://forums.phpfreaks.com/topic/266982-jquery-replace-part-of-tag/#findComment-1368835 Share on other sites More sharing options...
scootstah Posted August 12, 2012 Share Posted August 12, 2012 What are you doing/using to view the tag? Link to comment https://forums.phpfreaks.com/topic/266982-jquery-replace-part-of-tag/#findComment-1368843 Share on other sites More sharing options...
rockinaway Posted August 12, 2012 Author Share Posted August 12, 2012 using developer tools in chrome Link to comment https://forums.phpfreaks.com/topic/266982-jquery-replace-part-of-tag/#findComment-1368848 Share on other sites More sharing options...
scootstah Posted August 12, 2012 Share Posted August 12, 2012 Chrome automatically removes the "/" for me, even if I explicitly include it. So, it's just your browser. Link to comment https://forums.phpfreaks.com/topic/266982-jquery-replace-part-of-tag/#findComment-1368851 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.