javascript - Jquery rename content insite a tag and confirm it -
The user should be able to change the name and then confirm the change. I'm not able to store it with this code when I confirm, as it does before, what am I missing?
There is no better way to keep it together (which I'm sure there is one)?
Please check the demo where you type the JS: I think your code is correct but you need to use the value that you are entering when it will be binding on confirmation of something like this (bring it, and after that Before doing "conversion" in an H2 tag, it must be used to update Teddera. You can use this. Simultaneously, like jQuery 1.7. One more thing is that whenever you struggle with something like this (or whatever ...) what exactly do you want, in this case "input of jquery get value As a result, ASW will get first this way you will not forget it;) Update: Probably a small description, but binding I use it to hit only $ ('textarea To be more efficient ') Once, then something like this would be something that you must remember (Actually there is no problem), it is better to store a DOM in the variable instead of hitting multiple times. change element
$ ('. Replace'). $ ('Confirm'). $ ('Texturea') $ ('texturea') $ ('confirm.') $ ('Confirm.' '), $ Function () {$ (' replace '). ChangeElementType ("h2");}; if ($ ('text: visible')) {$ (document) .keepers (function (e) {if (e.which == 13) {Warning ('You enter CSS ('opacity', '1');}}}}}}};
"$ string"
$ ('Confirm'). ('Click', function () { Var value = specified ($ textarea) .val (); $ ('. Replace') shows (); $ (' Confirm '). Hide (); $ ("Textarea") Html (valueEntered) .changeElementType ("h2");});
$ ('Confirm'). ', Function () {var $ textarea = $ (' textarea '); $ ('Replace'). Show (); $ ('Confirm'). Hide (); $ Textarea.html ($ textarea.val ()) ChangeElementType ("h2");});
Comments
Post a Comment