Welcome to iPadForums.net Guest - Click Here to Register

A strange question on ipad's safari

This is a discussion on A strange question on ipad's safari within the iPad Development forums, part of the iPad App Store category; Code: <!DOCTYPE HTML> <html> <head> <title>form</title> <style type="text/css"> .tel{ -webkit-transition:all .3s ease-in-out; position:absolute; height:40px; } </style> </head> <body> <input type="text" id="tel" class="tel" style="top:10px"/> <s cript ...

Register with iPad Forums
+ Reply to Thread
Results 1 to 1 of 1
  1. #1
    iPad Noob!
    Member #
    33176
    Join Date
    Feb 2011
    Posts
    1

    A strange question on ipad's safari

    Code:
    <!DOCTYPE HTML>
    <html>
        <head>
            <title>form</title>
            <style type="text/css">
                .tel{
                    -webkit-transition:all .3s ease-in-out;
                    position:absolute;
                    height:40px;
                }
            </style>
        </head>
        <body>
            <input type="text" id="tel" class="tel" style="top:10px"/>
            <s cript type="text/javascript">
                var input=document.getElementById("tel");
                input.onfocus=function(){
                    input.style.top="50px";    
                }
                input.onblur=function(){
                    input.style.top="10px";
                }
            </script>
        </body>
    </html>
    Hello, i meet a strange question today.
    Those codes work fine on computer's safari. But when i try it on ipad's safari, the input's focus does not slide down with the text input element.
    How can i fix it?



Home | Forum | Active Topics | What's New

Sponsors

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Similar Threads

  1. strange charger question
    By spaced in forum iPad Help
    Replies: 2
    Last Post: 01-17-2011, 08:48 AM
  2. Safari Question
    By Heaviside in forum iPad Help
    Replies: 2
    Last Post: 01-13-2011, 01:35 PM
  3. Safari new page question
    By paul9619 in forum iPad General Discussions
    Replies: 7
    Last Post: 01-01-2011, 05:23 PM
  4. Strange safari problem
    By Tobiasrx in forum iPad Help
    Replies: 7
    Last Post: 10-19-2010, 07:13 AM
  5. Basic safari question
    By Ajh60 in forum iPad Help
    Replies: 4
    Last Post: 07-01-2010, 10:16 AM

Search tags for this page

fix type=file in ipad
,
focus() no safari ipad
,
how to highlight all text on ipad
,
how to select text safari ipad
,
html select form
,
input select text javascript ipad
,

ipad input type=file

,
ipad onfocus ,
ipad safari dropoff
,
ipad safari how to type text
,
ipad safari input form development
,
ipad safari textbox onblur
,

onfocus ipad

,
onfocus select on ipad
,

problems with text input in websites on ipad

,
safari developer tools
,

safari developer tools ipad

,

safari ipad select all text

,

safari ipad select text

,

select text safari ipad

Click on a term to search for related topics.