Hi, I want to just replace text in <span> on another div's slideToggle(), I have written some code which I expect to execute, but it's not working. In slideToggle() function I am getting false from is(:hidden) on both the State of slideToggle
Hi, I am using Autocomplete, with multiple values, remote. It's working fine for me, but now I want to add one change in it. The change is: I want to add condition that, user must select/enter value from suggested values in autocomplete.
e.g. Suppose my autocomplete suggesting following values on typing letter A : A003 A004 A005 Now user must select value from these suggested things, and if he enters wrong input (like A321 in above case), then, I would like to prompt user for correct input.
I have return some functions for autocompletion, which makes json calls to server. But json calls are not executing from some functions.
Below I am giving two functions, the 1st one is working fine and facing problem with 2nd functions (Note: Both functions are kept in external js file. And I am using these functions in MVC3 application)
1st function: (working fine)
$("#@txtTag").autocomplete({ source: function (request, response) { $.ajax({ url: "Tagging/AutocompleteSuggestions", type: "POST", dataType: "json", contentType: 'application/json; charset=utf-8', data: JSON.stringify({ term: extractLast(request.term), entityId: "@ViewBag.EntityId", entityType: "@ViewBag.EntityType" }), success: function (data) { response($.map(data, function (item) { return { label: item.Tag, value: item.Tag } } )) } }) }, minLength: 1, focus: function (event, ui) { $("#@txtTag").val(ui.item.label); return false; }, search: function () { var term = extractLast(this.value); if (term.length < 1) { return false; } }, focus: function () { return false; }, select: function (event, ui) { var terms = split(this.value); terms.pop(); terms.push(ui.item.value); terms.push(""); this.value = terms.join(", "); return false; } });
Hi, I have created a control (user control), which contains one hyperlink and one input textbox with two buttons. And I have written following code to hide and show text box onclick of hyperlink. It works fine when I use single controls on page.