Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

setattribute is not a function jquery

Use jquery.attr() like,

$(txtEndDate).attr('dateInRegionalFormat', txtEndDate.value);
Updated there may be multiple elements so use [0] for the first element like,

txtEndDate[0].setAttribute('dateInRegionalFormat', txtEndDate.value);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #setattribute #function #jquery
ADD COMMENT
Topic
Name
8+2 =