I am having a problem, I do not know how to display product information by entering product information into textbox , Then I press the tab button or move the mouse to the text box, which will automatically show detailed information on the product below.
Having HTML in the webform
& Lt; Input type = 'text' Id = 'mytxt' / & gt; & Lt; Div id = 'description' & gt; & Lt; / Div & gt;
You will do this:
$ ('# mytxt'). Change (function () {$ .post ('& lt;%: Url Action ("Details")% & gt;', {ID: $ (this) .val ()}, function (result) {$ (' The action in the MVC will look like this: public action statement details (string id ) {// Receive content in any way ... Return content (content);}
Comments
Post a Comment