javascript/css style |
(12-14-2014, 07:23 PM)jaysondotp Wrote: i have javascriprt function that there is an id name and i need to call the value into html. now it is possible to add the id name inside my html value, particular in input text value. I cant think of any reason to do this. The ID should be the input ID tag as shown here: PHP Code: <input id="itismyidname" type="text" size="20" name="code[]" value="" /> And then you would set the value using the .val() in jQuery. PHP Code: $( "#itismyidname" ).val( text ); Also if you want the input field to go away and show the loading image you are attempting to put to it, you would have to wrap the input in a div with the id itismyidname and then toggle the html inside that div between an image and a input field. |
Messages In This Thread |
javascript/css style - by jaysondotp - 12-14-2014, 07:23 PM
RE: javascript/css style - by trentramseyer - 12-14-2014, 11:56 PM
RE: javascript/css style - by jaysondotp - 12-15-2014, 08:32 PM
RE: javascript/css style - by jaysondotp - 12-15-2014, 10:58 PM
|