Page 1 of 1

Transposing fields

Posted: Mon Nov 25, 2013 4:51 pm
by Matthew6439702

Image

Following your tutorials of, "How to get input, radio button values from the page," I can make it work just fine. But I want to do the same type of thing for an input field.

Code: Select all

  var choose1 = $('input:radio[name=radiogroup]:checked').val(); 
 var getval= Tiggr('input'); 
 getval.val(choose1); 

This is what I can't get to work with an input field rather than a radio button. What am I doing wrong?

var num = $('input').val();
var getval= Appery('input');
getval.val(num);


Transposing fields

Posted: Mon Nov 25, 2013 5:06 pm
by maxkatz

If you want to use jQuery, first test that $('input') selects the right element.

For Appery(..) function to work, the input component name should be 'input'. Just try Appery("input").val() -- to see if that works.