¡@

Home 

2014/10/16 ¤W¤È 12:03:42

jquery Programming Glossary: helptext

Unable to set data attribute using jQuery Data() API

http://stackoverflow.com/questions/6827810/unable-to-set-data-attribute-using-jquery-data-api

using jQuery Data API I've got the following field on an MVC view @Html.TextBoxFor model model.Course.Title new data_helptext Old Text span In a seperate js file I want to set the data helptext attribute to a string value. Here's my code alert targetField.. @Html.TextBoxFor model model.Course.Title new data_helptext Old Text span In a seperate js file I want to set the data helptext attribute to a string value. Here's my code alert targetField .data helptext targetField .data helptext Testing 123 The.. a seperate js file I want to set the data helptext attribute to a string value. Here's my code alert targetField .data helptext targetField .data helptext Testing 123 The alert call works fine it shows the text Old Text in an alert dialog. However..