Hi Michael,
thank you very much for your solution which quite works out for me.
But now I have a question: What if I want to populate my input field
with more than one account or name? How do I update the code for the
input"hidden" in order to display both ids?
Any solution would be great!
Than
I finally figured it out. For the record...
JS Data:
var accounts = [
{ name: "Account One", id: "0001" },
{ name: "Account Two", id: "0002" },
{ name: "Account Three", id: "0003" },
{ name: "Account Four", id: "0004" },
Anyone?
I've been playing around with it, and the following will work if I
want to set the hidden value to "test"...
$("#account").result(function(event, data, formatted) {
$("#account_value").val("test");
});
...but I'm still not sure how to get the value from the "id" key value
of the
the problem is solved :D
If u using
or
the value can't be changed. The solution is using jquery field plugin
(http://www.pengoworks.com/workshop/jquery/field/field.plugin.htm).
instead using val(), using setValue() from this plugin work for me
On Jun 11, 8:08 pm, Klaus Hartl <[EMAIL PROT
Changing the value of a hidden input like this works fine for me. Can
you post an example?
--Klaus
On 11 Jun., 12:10, Andri <[EMAIL PROTECTED]> wrote:
> oops..sorry
>
> apparently if i use
>
>
>
>
> it's also doesnt work
>
> On Jun 11, 2:44 pm, Andri <[EMAIL PROTECTED]> wrote:
>
> > I have th
On 11 Jun., 12:23, MorningZ <[EMAIL PROTECTED]> wrote:
> Why not just simply use document.getElementById? (which
> ultimately .val() uses anyways)
The snippet given here didn't even contain an id.
--Klaus
Why not just simply use document.getElementById? (which
ultimately .val() uses anyways)
oops..sorry
apparently if i use
it's also doesnt work
On Jun 11, 2:44 pm, Andri <[EMAIL PROTECTED]> wrote:
> I have this input
>
> then when i try to change it with
> $('[EMAIL PROTECTED]').val('change to somethat');
>
> it doesn't work. if i change the type to 'text' it works. from now on
8 matches
Mail list logo