Hick
Hick

Reputation: 36404

How do I take value inside a text field of a html form using prototype.js?

var typeName = Form.getInputs('inputform','text','feature').find(function(text) { return text.checked; }).value;

Is this the right way to go about ?

I have applied the same to radio button and it worked .

Upvotes: 0

Views: 449

Answers (1)

Rob Agar
Rob Agar

Reputation: 12459

$F is the shorter way

var fooValue = $F('foo')

Upvotes: 3

Related Questions