Menu
  • HOME
  • TAGS

jquery creating variable and using it to for load - laravel

javascript,jquery,laravel,partial-views,loadview

Update: I don't see any id "demo3" in your markup code: $('#demo3').attr("displaymode"); // creating the variable I guess you want to use the "displaymode" attribute of clicked anchor, so for this you can pass this as an argument: onclick="getbyText(this)" onclick="getbyVar(this)" then in your functions: function getbyText(elem) { // use elem...