How do I use a variable to replace the value of the id selector string in jQuery?
For example, I can return the correct answer using the actual string "1325":
var textAddForm = jQuery(".ms-itmHoverEnabled[id*='1325']").find( "div" ).attr
("title");
but how would I use a variable value to replace the function of '1325' using jquery?
This doesn't work of course:
var val = 1325;
var textAddForm = jQuery(".ms-itmHoverEnabled[id*=val]").find( "div" ).attr("title");