This topic is locked

What does $('#value_somefield') mean?

10/23/2007 12:26:12 AM
PHPRunner General questions
G
giles author

Hi,

What does the $('#value_somefield') mean in the following javascript for setting the value of "somefield" from a radio button on sometable_edit page
java script: $('#value_somefield')[0].value='Street'; return true
I've searched a good bit for what "$('# " could mean but to no avail.
Appreciate any enlightenment on this.

Alexey admin 10/23/2007

Hi,
this is JQUERY library syntax.

It's equal to

document.getElementById('value_somefield').value='Street';



You can find more info on JQuery syntax here:

http://jquery.com