Here is my question:
I have an approval page for user submitted entries to my site.
The approval page has two radio buttons for each entry (approve or deny).
How can I make those radio buttons update the database table to 'approved' or 'denied'?
I have jQuery and would love to use that and the .post() function, just not sure on how th...
I have this script:
<script type="text/javascript">
$(function() {
$("a", "top_menu").addClass("ui-widget ui-state-default");
});
</script>
What I want to do, is apply those classes to all anchor tags of the next div:
<!-- Top menu -->
<div class="top_menu">
<a href="test">An anchor</a>
<a href="test1">Second Anchor</a>...
I've recently ran into a bit of a pain. I've been using the JQuery Dialog box to display some configuration screens in a web app. Nothing too special. However I have a couple edge cases where this config form will display a drop down of some... 11000 options. [DODGES ROTTEN TOMATOES]
Needless to say, it's slow. It can take up to 9 secon...
HTML:
<input type="text" id="priceperperson1" name="priceperperson1" />
<input type="text" name="personsvalue1" class="countme" readonly="readonly" />
JS:
jQuery(document).ready(function($) {
$('div.pricerow input.countme').each(function(){
var id = this.name.substr(this.name.length-1);
alert($('input#priceperperson'+id));
this.valu...
I am utilizing jQuery UI Tabs in an ASP.NET MVC 2 web application. One part of the application requires that I do error checking when I switch away from the tab. I am doing that via this script within the aspx file that contains the tabs.
<script type="text/javascript">
$(function () {
$("#tabs").tabs({
cache: t...
ex: i want to clean the "script" tag , but i want to keep the 'a' tag ,
so what lib you using to do this .
and i use jquery cleditor for WYSIWYG HTML editor , can it do this for me automatically ?
thanks
...
This is what I have in short.
I have a dynamic list. On-Click it will pop-up with a jQuery Dialog box, which all works great and dandy. BUT what I am trying to do is set it up, so when someone clicks and the dialog pop's up it will show a form so they can UPDATE the result, instead of loading an entirely new page.
I have the dialog op...
<head>
<meta name="description" content="Directory" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"> </script>
<script type="text/javascript" src="https://sitename.com/javascripts/toggle.js" language="javascript"></script>
</head>
this is the error showing in...
I am trying to pull data from my populated javascript table. How do I pull the value from a javascript row? I am using
for (var i = 0; i < rowCount; i++) {
var row = table.rows[i];
//This is where I am having trouble
var chkboxIndicator = row.cells[0].childNodes[1];
...
Hi everybody,
I have a page with a form, I'd like with a button have reset button effect only on input text inside a div here is an extraxt of my code:
html:
<div id="new_prom" style="clear:both; padding:2px; border:1px solid red; margin:5px;">
<div>
Codice <input type="text" id="cod_pro" name="cod_pro" class="short"> Sottocodice <i...
I am attempting to make a horizontal scrolling portfolio site. I want to users to be able to click through the images using a next/previous button as well as scrolling as per usual with the mouse and scroll bars. I am, however, having trouble implementing this using jquery.
The table is used as this is best practice in horizontal websit...
Here's my javascript:
$(".more_info").hide();
$(".checkbox.has_info, .has_info").focus(function(){
$(this).parent().next().next().show("fast");
});
$(".checkbox.has_info, .has_info").blur(function(){
$(this).parent().next().next().hide("fast");
});
Note, that this works perfectly in Firefox/ IE7, IE8.
So far I have discovered th...
<script type="text/javascript">
$(function(){
function getJsonDate(year, month) {
$.getJSON('dates.php?year='+year+'&month='+month, function(data) {
var i = 0;
for (i = 0; i < data.data.length; i++)
{
$('.ui-da...
Hi all,
I was learning JQuery and a question came across my mind.
Is it possible to grab multiple values from a few hidden fields and then display
the values in other Input Text boxes accordingly in the following case?
$(document).ready(function(){
$(".clickable").click(function(){
// display the values in the two hidden fields in each...
I have the following code working perfeclty in FireFox, but it won't work at all on IE6:
$("[name=servicos\\[\\]]").each( function() {
this.checked = false;
alert(this.name);
}
);
$.getJSON("check_servicos.php?id=" + id,
function(data) {
$.each(data,
function(key, val) {
alert($("#" + key).attr("id"));
if(val >...
Is there a jQuery function that returns the version of jQuery that is currently loaded?
...
Hi,
I would like to know how to add support for multiplication in this jQuery solution:
http://stackoverflow.com/questions/3239760/jquery-calculation-question
It works well for addition and substraction, but how can it support multiplication?
thanks.
You can see the code example here:
http://jsfiddle.net/JRcqk/1/
...
I am using JQModal on an ASP.Net page in two different modes. For some of the modals, I am displaying Inline content from the page. For other modals, I am using the AJAX attribute on JQModal to display content from an external page. I am finding that these two modes seem to be conflicting with one another. For instance, if I open an ...
If I have a drawing program with jquery, everything is done inside a #canvas div. How do I take whats in this div (including all the drawings a user makes) and save that to an image file? I know its much more complicated, but how should I approach this?
...
I have the following (simplified) object literal. The icons method uses closure to hide the icons variable, which I'd like to have as an associative array for later lookups.
var MapListings = {
icons: function () {
var allIcons = [] ;
return {
add: function (iconType, iconImage) {
var ico...