1.

How many arguments does the getInputHtml() accept?(a) 1(b) 2(c) 3(d) 4I got this question in homework.My doubt stems from Crafting the Public API in portion Parsing, Benchmarking and Logging of JavaScript

Answer» RIGHT CHOICE is (b) 2

For explanation: The method GETINPUTHTML() returns a fieldtype’s input HTML. The method getInputHtml(0 ACCEPTS two arguments: $name and $value. $name is the name you should assign your HTML input name= attribute, and $value is the field’s current value (EITHER from the DB, or the POST data if there was a validation error).


Discussion

No Comment Found

Related InterviewSolutions