Skip to content
This repository was archived by the owner on Mar 11, 2024. It is now read-only.
This repository was archived by the owner on Mar 11, 2024. It is now read-only.

Change trigger doesn't work? #5

Open
@tommaxwell

Description

@tommaxwell

I've tried messing with the trigger event but it just doesn't seem to work. In my Rails app I'm using contentEditable divs and need titles of entries to be filled when the user opens the entry. However, since the change trigger doesn't work the placeholder stays too.

Here's an example:

autoFill = function(){
$("#title-edit-partial").text("<%= @submission.title %>").trigger("change");
$("#content-edit-partial").text("<%= @submission.content %>").trigger("change");
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions