In an MVC Edit View .cshtml file there is a textbox
<div class="form-group" id="dlink1">
@Html.LabelFor(model => model.docLink1, htmlAttributes: new {
@class = "control-label col-md-3" })
<div class="col-md-9">
@Html.EditorFor(model => model.docLink1, new {
htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.docLink1, "",
new { @class = "text-danger" })
</div>
</div>
if the user posts data into this text field box, the data has to be
checked, for example
var weblink1 = "www.dropbox.com";
var weblink2 = "dl.dropboxusercontent.com";
$("#dlink1").bind('keyup', function () {
return $(this).text().replace(weblink1, weblink2); <-doesnt work
("#dlink1").text = $("#dlink1").text().replace(weblink1, weblink2)
<-doesnt work
})
so the resulting function should be when the textbox detects any change,
keyup, click, change then run the function to find/replace the string
literal within a link, so a link such as
"http://www.dropbox.com/1/a104.png?dl=0" must have just that url part
replaced and leave the rest intact
Im still new to Angular but looking to find this functionality if its
possible?
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.