1. I have some simple queries with regards to function calling. In
plain javascript if I want to call a javascript function from my HTMl
tag i do it like:
<input type="text" id="myid" onclick="javascript:sayHello(this.id);"
value="World" />
Now my javascript function would be defined as
function sayHello(id) {
    alert("Hello " + id.value);
}

Now I want to use JQuery to do such kind of programming wherein some
value (not necessary something from the attribute) is passed t o the
function and processing is done. Can anyone please guide me as to how
can it be acomplished.

Reply via email to