Search found 136 matches

Go to advanced search

by Takis
Thu Oct 23, 2014 12:54 pm
Forum: Issues
Topic: Get text from dynamically created checkboxes (text is populated from database)
Replies: 14
Views: 4111
 
Jump to post

Get text from dynamically created checkboxes (text is populated from database)

code
var checked = Appery('mobilecheckboxgroup_16')
.find(':checked')
.map(function() {
return this.value;
}).get();
localStorage.setItem("lclStg_par1", checked);
/code

by Takis
Thu Oct 23, 2014 12:37 pm
Forum: Issues
Topic: Get text from dynamically created checkboxes (text is populated from database)
Replies: 14
Views: 4111
 
Jump to post

Get text from dynamically created checkboxes (text is populated from database)

The one you posted, stangly does not work. Nothing is written in the label.

var checked = Appery('mobilecheckboxgroup_16')
.find(':checked')
.map(function() {
return this.value;
}).get();
localStorage.setItem("lclStg_par1", checked);

by Takis
Thu Oct 23, 2014 12:36 pm
Forum: Issues
Topic: Get text from dynamically created checkboxes (text is populated from database)
Replies: 14
Views: 4111
 
Jump to post

Get text from dynamically created checkboxes (text is populated from database)

Code 2 - Works fine

code

var mobilecheckboxgroup = Apperyio("chkBox_Interests").find(":checked");
var arr = [];
mobilecheckboxgroup.each(function(){
arr.push($(this).attr("value"));

/code

by Takis
Thu Oct 23, 2014 8:58 am
Forum: Issues
Topic: Get text from dynamically created checkboxes (text is populated from database)
Replies: 14
Views: 4111
 
Jump to post

Get text from dynamically created checkboxes (text is populated from database)

SORRY Correct Code 2 is the below Code 2--------------------------------- var mobilecheckboxgroup = Apperyio("chkBox_Interests").find(":checked"); var arr = []; mobilecheckboxgroup.each(function(){ arr.push($(this).attr("value")); }); localStorage.setItem("lclStg_p...
by Takis
Thu Oct 23, 2014 8:42 am
Forum: Issues
Topic: Get text from dynamically created checkboxes (text is populated from database)
Replies: 14
Views: 4111
 
Jump to post

Get text from dynamically created checkboxes (text is populated from database)

Hi Katerina I have the dynamic check boxes created fine. When I put the below code in a button Code 1-------------------------------------------------- var checked = Appery('mobilecheckboxgroup_16') .find(':checked') .map(function() { return this.value; }); localStorage.setItem("lclStg_par1&quo...
by Takis
Wed Oct 22, 2014 5:10 pm
Forum: Issues
Topic: Get text from dynamically created checkboxes (text is populated from database)
Replies: 14
Views: 4111
 
Jump to post

Get text from dynamically created checkboxes (text is populated from database)

Hi all I have check boxes created by a DB Service. The DB has a table with one column, from where I get the text that will be displayed for the check box. This works fine. Now, I have a button. When I click on the button, I want a javascript to iterate through the checked check boxes and get its tex...

Go to advanced search