.attr
The data-
attribute can hold any data
1 | <div class="item" data-square="1"> |
To read this data
1 | $(document).ready(function () { |
.ajax
Type needs to match the Http Verb, the POST below is intended to create/insert
and can be used with these example api controller methods.
1 | $(document).ready(function () { |
.datepicker
1 | $(document).ready(function () { |
.append
1 | var heading = "<div class='chart-wrapper__item-heading'>" + json.chartModelsWithMany[i].Heading + "</div>"; |
.dialog
Some sweet HTML and CSS hacks
1 | .ui-dialog { |
1 | <div id="dialog" class="dialog" style="z-index: 1050!important;" title="SWEET HEADING"> |
The Javascript to trigger, includes close hacks
1 | $(document).ready(function () { |
.load
1 | $('#fooDiv').load("/Controller/Action/?id=42"); |