javascript - Unable to set textarea value as var -
I am trying to get the value of the textareas as variable, but at console.log it is empty Looks, even if it is not really empty. Here is the code I have:
$ ("# enableEdit"). Click (function () {var selectedDescriptionIdentifier = "; var selectedFlagIdentifier =" "; $ (" .exitableDescription. "(" Disabled ", incorrect) PROP (" disabled ", incorrect). (Function () {$ (this) FocusAut (function () {var requestMac = $ (this) .attr ("data-mac"); var requestDescription = $ (".editableDescription"). Val (); var requestFlag = $ (".ableable flag") Val (); console.log (requestMac + "+ + request + +" - "+ requestFlag) var dataString = 'Select =' + EncodeurIComponent (requestMac) + 'and addDescription =' + encodeuric format (request) And addFlag = '+ encodeurIC component (requestFlag); if (requestMac! =' '& Amp; (requestDescription! =' '|| requestflag! =' ')) {$ .ajax ({type: "post", Url: "update_db.php", d Thread: Datashrring, cache: incorrect, success: function (html) {console.debug (data string);}})}} description is false;});})}); But what I have as a result here on console.log:
< P> Any thoughts?B8: 27: EB: AF: 3E: 4B - -
Thanks a lot
Comments
Post a Comment