Wednesday, December 25, 2013

JQuery hints

Set a field value: $('input[title=Email]').attr({value:'test email'});

Hide a row: $('h3:contains("Title")').closest('tr').hide();

Change event on choice field: $('select[title=Display]').change(function(){alert($('select[title=Display]').val())});

Condition: if($('select[title=Display]').val()=="Yes") {alert($('input[title=Email]').val());}

No comments:

Post a Comment

How to launch a document by clicking a link to the file?

Word: <a href='ms-word:ofe|u|path/to/web/word/document.docx'>Link to document</a> Excel: <a href='ms-excel:o...