I have a form seems like this:
<form id="form1">
<div id="teste1">
aaa: <input id="aaa" name="aaa" type="text" />
bbb: <input id="bbb" name="aaa" type="text" />
ccc: <input id="ccc" name="aaa" type="text" />
</div>
<div id="teste2">
ddd: <input id="ddd" name="aaa" type="text" />
</div>
</form>
So, in jquery I took the 'form1' element and put it into a variable and passed it into a function parameter:
$.function({
var temp = $("#form1");
foo(temp);
});
And then, the function foo is inside other script and I need find the id 'ddd', for example. How can I do it?
foo = function(dataform)
{
dataform.$("#ddd").val() ?????
};
thanks a lot.