Topic: getValue ?

Exists a simple Xajax function like getFormValues to get a value as example from a div ?

I need to get a div value by submit a form.

onsubmit="xajax_suchen(xajax.getFormValues(this.id),xajax.getValue('main'));"

// xajax.getValue does not exists.

Re: getValue ?

xajax.$('main').value

Re: getValue ?

didn´t  sure what you exactly mean, a div doesn´t support the parameter "value", or did you mean the innerHTML,
than it´s xajax.$('main').innerHTML

Re: getValue ?

xajax.$('main').innerHTML

That it is.

Re: getValue ?

Wow! And I've been using document.getElementById this whole time.. Silly me ^_^

Re: getValue ?

Helpful post!