Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Javascript does not work android default browser

  • pivostar01
  • pivostar01's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 10 months ago #136248 by pivostar01
HI,
Question type = Multiple choice with comments. My script hide the text field. All browsers work but does not work Android default browser.

Thank you for your help.

My script:

<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
kiirtos();
});

function kiirtos() {
$('div[id^="question"]').each(function(i) {
if($(this).hasClass("multiple-opt-comments")) {
$(".answertext").each(function(j) {
var duma=$(this).text();
if (!duma.endsWith("Other:") ) {
var idje=$(this).attr("for");
var idje2="#"+idje+"comment" ;
$(idje2).hide();
$(idje2).attr('disabled', true);
$(idje2).remove();

}
});
}
} );
}

</script>
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose