Actions

Talk

Workarounds: Manipulating a survey at runtime using Javascript

From LimeSurvey Manual

Regarding the [| meioMask] example, in 2.05+ there seems to be a problem with the following code sample not being recognized:

  // Tell the plugin to apply masks to these inputs
        $('input:#answer111111X22XAA').setMask();

Removing the colon after "input" is one way of correcting this, as follows:

  // Tell the plugin to apply masks to these inputs
        $('input#answer111111X22XAA').setMask();

(in the sample code provided after #5)