JQuery.("#someid).html() not working

Home Forums vLooup for SharePoint JQuery.("#someid).html() not working

Tagged: 

Viewing 2 reply threads
  • Author
    Posts
    • #27270
      Bryan R Babbitt
      Participant

        Hi Alex
        I am using some custom script to modify the headers in the forms . Like JQuery.

        var thetext = hi Alex

        jQuery(“#someid).html(thetext);

        In dffs on the header field I put . In version 4.4.3.47 this works just fine. However in 4.4.4.10 it is not working . Any ideas what might be going on?

      • #27272
        Alexander Bautz
        Keymaster

          Hi,
          The reason is that the heading and html sections are not rendered until you click a tab. This change was made to reduce the initial load time on larger forms with a lot of headings and html sections.

          Define your variable in Custom JS like this:

          var thetext = "hi Alex";

          Change your heading textarea like this:

          {{var:thetext}}

          Then just change your variable like this:

          thetext = "hi Bryan";

          and it will automatically reflect in the heading.

          Alexander

        • #27274
          Bryan R Babbitt
          Participant

            Perfect..thanks Alex.

        Viewing 2 reply threads
        • You must be logged in to reply to this topic.