Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form enctype="multipart/form-data" method="post" action="idea.php?id=89&edit=true" class="editideaform">
- <div class="imagewrap">
- <img alt="" src="images/ideaimages/idea_89_2132_1290078215_footer_pics.jpg">
- <input type="file" value="" name="ideapicture"><div class="inputfake noimg" style="z-index: 400;"><input type="submit" class="savepicture" value="" name="submit" style="opacity: 1; border: 0pt none; background-color: transparent; bottom: 5px; left: 0pt; color: rgb(12, 160, 224);"></div> </div>
- </form>
- <script type="text/JavaScript">
- $('.idea .rightside .imagewrap input[type=file], .profile .userimagewrap input[type=file]').change(function(){
- if($(this).val() != ''){
- $(this).siblings('.inputfake').addClass('noimg').html('').append('<input type="submit" name="submit" value="" class="savepicture" />').css(
- 'zIndex', 400).children('input').css({
- opacity: 1,
- border: '0 none',
- backgroundColor: 'transparent',
- bottom: '5px',
- left: '0',
- color: '#0CA0E0'
- });
- console.log($(this).parent().parent());
- $(this).parent().parent().submit();
- }
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement