开发者

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

开发者 https://www.devze.com 2023-02-15 11:34 出处:网络
var typeName = Form.getInputs(\'inputform\',\'text\',\'fe开发者_C百科ature\').find(function(text) { return text.checked; }).value;
var typeName = Form.getInputs('inputform','text','fe开发者_C百科ature').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 .


$F is the shorter way

var fooValue = $F('foo')
0

精彩评论

暂无评论...
验证码 换一张
取 消