Created
July 7, 2015 04:32
-
-
Save errakeshpd/0f2bd2eb5064b5255fa7 to your computer and use it in GitHub Desktop.
Is there any way to create text fields based on the javascript variable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
in a model popup receiving a variable as question type id as '$('#subquestion').val()' based on this value the model popup content have to create | |
<%@lg = Language.all %> | |
<% @qs_type = Question.find( javascript value ).question_type %> | |
<% @lg.each do |n| %> | |
if ( @qs_type == 11) | |
matchingtype question two textbox | |
<%= text_area %> | |
<%= text_area %> | |
elsif @qs_type == 3 | |
mutiple choice one textbox. | |
<%= text_area %> | |
<% end %> | |
is there any way to do this ? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment