Actions

Talk

Talk:Workarounds: Manipulating a survey at runtime using Javascript

From LimeSurvey Manual

Revision as of 20:49, 1 March 2014 by Duvemyster (talk | contribs) (Correction to meioMask sample code for LS 2.05+)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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)