vuyiswamb 17 Posting Whiz

Good Day All


i have a Function e.g

public String Getdata(String mystr)

{

//Do what ever

//return  a String

}

and i want to call this function and pass data in Javascript like this

function KeyPress() {
            var TExtbox1 = document.getElementById('Text1');
        
         if (TExtbox1.value.length == 2) {

        //call the function here and pass the textbox1 value.  

   return false;
         }
        }

Thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.