Welcome Guest, Not a member yet? Register   Sign In
javascript/css style
#3

do you have any other sample. and here is my full JS code.


PHP Code:
<script type="text/javascript">
    $(
document).ready(function()
        {
            $(
"#text_val1").keyup(function (e) {
                $(
this).val($(this).val().replace(/\s/g''));
                var 
code = $(this).val();
                if(
code.length 4){$("#code_resul1").html('');return;}
                if(
code.length >= 4)
                    {
                        $(
"#code_resul1").valtext );
                        $.
post('check_input.php', {'code':code}, function(data) {
                        
 $("#code_resul1").html(data);
                        });
                    }
            });    
        });
</
script
and here is my html
PHP Code:
<input type="text" id "text_val1" size="20" name="code[]" value="" placeholder="Enter Arms" />
<
span id="code_resul1"></span

take a look my sample works, after typing integers.  if the record are existing, its provide details in a right side. and if its not, it will provide check image. but what i want is. the result details can show into another input in inside it not inthe outside.
[Image: Untitled_1.jpg]
[Image: Untitled_2.jpg]

kindly assist 
Reply


Messages In This Thread
javascript/css style - by jaysondotp - 12-14-2014, 07:23 PM
RE: javascript/css style - by trentramseyer - 12-14-2014, 11:56 PM
RE: javascript/css style - by jaysondotp - 12-15-2014, 08:32 PM
RE: javascript/css style - by jaysondotp - 12-15-2014, 10:58 PM



Theme © iAndrew 2016 - Forum software by © MyBB