Search code examples
jqueryhtmlqtip

qtip content button unable change div display & text readonly attribute


I am having problem with qtip content button. When i try to change a text's readonly property to, it change the property by it is still writeabl. and same problem when i am trying to display a div using on click.

Here is JSfiddle link to the problem....


Solution

  • Qtip clones your html for the Tooltip and then displays it as and when, meaning your id wont always be unique.

    Instead using the class

     $(document).on("click",'.poster', function() {
            $('.lookup').attr('readOnly', true);     
        });
    

    Will disable the textfield when you click the go button

    updated fiddle